Merge 1.2.0 changes back to master.

This commit is contained in:
Michael Jumper
2020-06-21 19:29:55 -07:00
2 changed files with 3 additions and 5 deletions

View File

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