mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUACAMOLE-5: Add sharing profile permissions.
This commit is contained in:
		| @@ -111,6 +111,20 @@ public interface User extends Identifiable { | ||||
|     ObjectPermissionSet getConnectionGroupPermissions() | ||||
|             throws GuacamoleException; | ||||
|  | ||||
|     /** | ||||
|      * Returns all sharing profile permissions given to this user. | ||||
|      * | ||||
|      * @return | ||||
|      *     An ObjectPermissionSet of all sharing profile permissions granted to | ||||
|      *     this user. | ||||
|      * | ||||
|      * @throws GuacamoleException | ||||
|      *     If an error occurs while retrieving permissions, or if reading all | ||||
|      *     permissions is not allowed. | ||||
|      */ | ||||
|     ObjectPermissionSet getSharingProfilePermissions() | ||||
|             throws GuacamoleException; | ||||
|  | ||||
|     /** | ||||
|      * Returns all permissions given to this user regarding currently-active | ||||
|      * connections. | ||||
|   | ||||
| @@ -49,6 +49,11 @@ public class SystemPermission implements Permission<SystemPermission.Type> { | ||||
|          */ | ||||
|         CREATE_CONNECTION_GROUP, | ||||
|  | ||||
|         /** | ||||
|          * Create sharing profiles. | ||||
|          */ | ||||
|         CREATE_SHARING_PROFILE, | ||||
|  | ||||
|         /** | ||||
|          * Administer the system in general, including adding permissions | ||||
|          * which affect the system (like user creation, connection creation, | ||||
|   | ||||
| @@ -195,4 +195,9 @@ public class SimpleUser extends AbstractUser { | ||||
|         return new SimpleObjectPermissionSet(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public ObjectPermissionSet getSharingProfilePermissions() { | ||||
|         return new SimpleObjectPermissionSet(); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user