Minor style corrections and code clean-up.
@@ -432,14 +432,12 @@ public abstract class ModeledDirectoryObjectService<InternalType extends Modeled
if (user.getUser().isSkeleton())
return Collections.emptyList();
- // Get the user model and check for an entity ID.
- UserModel userModel = user.getUser().getModel();
-
// Build list of implicit permissions
Collection<ObjectPermissionModel> implicitPermissions =
new ArrayList<>(IMPLICIT_OBJECT_PERMISSIONS.length);
+ UserModel userModel = user.getUser().getModel();
for (ObjectPermission.Type permission : IMPLICIT_OBJECT_PERMISSIONS) {
// Create model which grants this permission to the current user
