mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 13:44:33 +00:00
added command to remove the role from mod mail configuration again
added convenience method to disallow a whole feature for a role
This commit is contained in:
@@ -97,5 +97,13 @@ public class CommandServiceBean implements CommandService {
|
||||
commandForServer.getAllowedRoles().removeIf(role1 -> role1.getId().equals(role.getId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disAllowFeatureForRole(FeatureEnum featureEnum, ARole role) {
|
||||
AFeature feature = featureManagementService.getFeature(featureEnum.getKey());
|
||||
feature.getCommands().forEach(command -> {
|
||||
this.disAllowCommandForRole(command, role);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user