mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
Ticket #395: Fixed some small bugs.
This commit is contained in:
@@ -246,8 +246,10 @@ public class PermissionCheckService {
|
|||||||
*/
|
*/
|
||||||
public boolean checkConnectionGroupAccess(int userID, Integer affectedConnectionGroupID, String permissionType) {
|
public boolean checkConnectionGroupAccess(int userID, Integer affectedConnectionGroupID, String permissionType) {
|
||||||
|
|
||||||
// All users have implicit permission to use the root group
|
// All users have implicit permission to read and update the root connection group
|
||||||
if(affectedConnectionGroupID == null)
|
if(affectedConnectionGroupID == null &&
|
||||||
|
MySQLConstants.CONNECTION_GROUP_READ.equals(permissionType) ||
|
||||||
|
MySQLConstants.CONNECTION_GROUP_UPDATE.equals(permissionType))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// A system administrator has full access to everything.
|
// A system administrator has full access to everything.
|
||||||
|
Reference in New Issue
Block a user