Fixed style check issue

This commit is contained in:
Lucas Leite 2024-09-18 12:07:31 -03:00
parent 08ce3f4520
commit 9dc855004c

View File

@ -129,7 +129,8 @@ public class NotificationResource extends ExtendedObjectResource<Notification> {
var conditions = new LinkedList<Condition>();
conditions.add(new Condition.Equals("id", userId));
if (permissionsService.notAdmin(getUserId())) {
conditions.add(new Condition.Permission(User.class, getUserId(), ManagedUser.class).excludeGroups());
conditions.add(new Condition.Permission(
User.class, getUserId(), ManagedUser.class).excludeGroups());
}
users.add(storage.getObject(
User.class, new Request(new Columns.All(), Condition.merge(conditions))));