mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Ticket #362: Re-ordered lines.
This commit is contained in:
@@ -128,9 +128,8 @@ public class PermissionRESTService {
|
||||
// Get the original permissions the user had
|
||||
Set<Permission> originalPermissions = user.getPermissions();
|
||||
|
||||
Set<Permission> permissionsToRemove = new HashSet<Permission>(originalPermissions);
|
||||
|
||||
// Find all permissions in the original set, but not the new one
|
||||
Set<Permission> permissionsToRemove = new HashSet<Permission>(originalPermissions);
|
||||
permissionsToRemove.removeAll(newPermissions);
|
||||
|
||||
// Remove all permissions that are no longer wanted
|
||||
|
Reference in New Issue
Block a user