[AB-79] fix not applying role for re-joining users upon sync

This commit is contained in:
Sheldan
2022-12-27 13:03:59 +01:00
parent 74f54e1257
commit 41f42ee110
6 changed files with 13 additions and 17 deletions

View File

@@ -122,10 +122,6 @@ public class RoleServiceBean implements RoleService {
}
private CompletableFuture<Void> addRoleToUserAsync(Guild guild, Long userId, ARole role) {
if(role.getDeleted()) {
log.warn("Not possible to add role to user. Role {} was marked as deleted.", role.getId());
throw new RoleDeletedException(role);
}
Role roleById = guild.getRoleById(role.getId());
if(roleById != null) {
log.info("Adding role {} to user {} in server {}.", role.getId(), userId, guild.getId());