]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-541: Changed ant import task to create roles/perms only for enabled tenants.
authorRichard Millet <remillet@yahoo.com>
Thu, 15 Nov 2018 16:56:49 +0000 (08:56 -0800)
committerRichard Millet <remillet@yahoo.com>
Thu, 15 Nov 2018 16:56:49 +0000 (08:56 -0800)
services/authorization-mgt/import/src/main/java/org/collectionspace/services/authorization/importer/AuthorizationGen.java

index 65054e81081ebf3a32bc1b53ec4697ee08b8e300..51c722f65e076984299c8722a5fa2beaf0dd0b4a 100644 (file)
@@ -103,10 +103,11 @@ public class AuthorizationGen {
         TenantBindingConfigReaderImpl tenantBindingConfigReader =
                 new TenantBindingConfigReaderImpl(tenantRootDirPath);
         tenantBindingConfigReader.read(useAppGeneratedBindings);
-        // Note that we build permissions for all tenants, whether or not they are marked create disabled.
-        // This is a hack until we can correctly run an incremental import.
-        tenantBindings = tenantBindingConfigReader.getTenantBindings(
-                                                       TenantBindingConfigReaderImpl.INCLUDE_CREATE_DISABLED_TENANTS);
+
+        //
+        // Don't include disabled tenants
+        //
+        tenantBindings = tenantBindingConfigReader.getTenantBindings(  TenantBindingConfigReaderImpl.EXCLUDE_CREATE_DISABLED_TENANTS);
         cspaceTenantMgmntRole = buildTenantMgmntRole();
 
         if (logger.isDebugEnabled()) {