mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
RM permission inheritance behaviour clarified
* read permissions not inherited to root categories, holds or items in the root of the unfiled record container .. this matches the current behaviour of the file plan and is a partial work around for the issue of inheriting "path" read permissions vs actual read permissions. * consolidation of permission initialisation code (there is only one route now) * resolved RM-1317 * unit tests * update server integration tests * knock on minor simplifications on the file plan and transfer service * moved more frequently used methods into the service base to reduce unessesary service interlinking git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@67030 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -155,7 +155,7 @@ public class RM1008Test extends BaseRMTestCase
|
||||
Capability viewRecords = capabilityService.getCapability("ViewRecords");
|
||||
assertNotNull(viewRecords);
|
||||
|
||||
assertEquals(AccessStatus.ALLOWED, viewRecords.hasPermission(hold));
|
||||
assertEquals(AccessStatus.DENIED, viewRecords.hasPermission(hold));
|
||||
assertEquals(AccessStatus.DENIED, permissionService.hasPermission(hold, RMPermissionModel.FILING));
|
||||
|
||||
return null;
|
||||
@@ -173,8 +173,6 @@ public class RM1008Test extends BaseRMTestCase
|
||||
}
|
||||
}, rmAdminName);
|
||||
|
||||
// FIXME: After fixing RM:1315 this should be fixed
|
||||
/*
|
||||
doTestInTransaction(new Test<Void>()
|
||||
{
|
||||
@Override
|
||||
@@ -189,7 +187,6 @@ public class RM1008Test extends BaseRMTestCase
|
||||
return null;
|
||||
}
|
||||
}, myUser);
|
||||
*/
|
||||
|
||||
doTestInTransaction(new Test<Void>()
|
||||
{
|
||||
@@ -210,7 +207,7 @@ public class RM1008Test extends BaseRMTestCase
|
||||
Capability viewRecords = capabilityService.getCapability("ViewRecords");
|
||||
assertNotNull(viewRecords);
|
||||
|
||||
assertEquals(AccessStatus.ALLOWED, viewRecords.hasPermission(hold));
|
||||
assertEquals(AccessStatus.DENIED, viewRecords.hasPermission(hold));
|
||||
assertEquals(AccessStatus.DENIED, permissionService.hasPermission(hold, RMPermissionModel.FILING));
|
||||
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user