From: mka Date: Fri, 9 Nov 2012 11:10:33 +0000 (+0000) Subject: canManageDatabase() method is improved X-Git-Tag: Root_Delivery1_2012_12_06~82 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df570dc858634eb76c770ba5d05c02c91ad5e014;p=tools%2Fsiman.git canManageDatabase() method is improved --- 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; }