mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM: A couple adjustments to the Role API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@44278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -200,8 +200,8 @@ public class DeclarativeCapabilityTest extends BaseRMTestCase
|
||||
Role role = new ArrayList<Role>(roles).get(0);
|
||||
assertNotNull(role);
|
||||
|
||||
Map<String, String> roleCapabilities = role.getCapabilities();
|
||||
if (roleCapabilities.containsKey(capability.getName()) == true && conditionResult == true)
|
||||
Set<Capability> roleCapabilities = role.getCapabilities();
|
||||
if (roleCapabilities.contains(capability) == true && conditionResult == true)
|
||||
{
|
||||
assertEquals("User " + userName + " has the role " + role.getDisplayLabel() +
|
||||
" so we expect access to be allowed for capability " + capability.getName() + " on the object " +
|
||||
|
Reference in New Issue
Block a user