From df570dc858634eb76c770ba5d05c02c91ad5e014 Mon Sep 17 00:00:00 2001 From: mka Date: Fri, 9 Nov 2012 11:10:33 +0000 Subject: [PATCH] canManageDatabase() method is improved --- Workspace/Siman-Common/src/org/splat/som/ApplicationRights.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Workspace/Siman-Common/src/org/splat/som/ApplicationRights.java b/Workspace/Siman-Common/src/org/splat/som/ApplicationRights.java index 8c3fe90..795d084 100644 --- a/Workspace/Siman-Common/src/org/splat/som/ApplicationRights.java +++ b/Workspace/Siman-Common/src/org/splat/som/ApplicationRights.java @@ -84,7 +84,7 @@ public class ApplicationRights { res = _roles.contains(Profile.sysadmin.toString()); } else { String position = _user.getOrganizationName(); - res = (position == null || (!position.equals(N_2))); + res = ((position == null || (!position.equals(N_2))) && _roles.contains(Profile.sysadmin.toString())); } return res; } -- 2.39.2