]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
canManageDatabase() method is improved
authormka <mka@opencascade.com>
Fri, 9 Nov 2012 11:10:33 +0000 (11:10 +0000)
committermka <mka@opencascade.com>
Fri, 9 Nov 2012 11:10:33 +0000 (11:10 +0000)
Workspace/Siman-Common/src/org/splat/som/ApplicationRights.java

index 8c3fe9010d14e7e8f4476eebe63ce37153a09509..795d0849a395d99bcdeca0dded4d0fc020dc7591 100644 (file)
@@ -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;
        }