]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-2844: Adding immutable flag to admin and reader roles when they are created...
authorRichard Millet <remillet@berkeley.edu>
Thu, 23 Aug 2012 07:50:42 +0000 (00:50 -0700)
committerRichard Millet <remillet@berkeley.edu>
Thu, 23 Aug 2012 07:50:42 +0000 (00:50 -0700)
services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationGen.java

index d21bebf39f4b1d8fcaf6af1a3b44351b13ea2576..351a4d6fa711da6d03ca9b6d7874c9e187ea6896 100644 (file)
@@ -226,7 +226,7 @@ public class AuthorizationGen {
         if (result == null) {
                // the role doesn't exist already, so we need to create it
                String description = "Generated tenant " + type + " role.";
-               result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_ADMINISTRATOR, description);
+               result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_ADMINISTRATOR, description, true /*immutable*/);
         }
         
         return result;
@@ -239,7 +239,7 @@ public class AuthorizationGen {
         if (result == null) {
                // the role doesn't exist already, so we need to create it
                String description = "Generated tenant " + type + " role.";
-               result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_READER, description);
+               result = AuthorizationCommon.createRole(tenantId, AuthorizationCommon.ROLE_TENANT_READER, description, true /*immutable*/);
         }
         
         return result;