GUACAMOLE-708: Minor style corrections and code clean-up.

This commit is contained in:
Virtually Nick
2020-06-21 07:06:08 -04:00
parent 6c3095135d
commit 32d85d835e
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())
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