mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Tenant Service hooks for LockService, FileFolderService and other MT fixes (DbNodeService & AuthorityService)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6437 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -104,7 +104,9 @@ public class AuthorityServiceImpl implements AuthorityService
|
||||
public boolean hasAdminAuthority()
|
||||
{
|
||||
String currentUserName = authenticationComponent.getCurrentUserName();
|
||||
return ((currentUserName != null) && adminUsers.contains(currentUserName));
|
||||
|
||||
// for MT, see note for getAuthoritiesForUser
|
||||
return ((currentUserName != null) && (adminUsers.contains(currentUserName) || adminUsers.contains(tenantService.getBaseNameUser(currentUserName))));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -117,7 +119,8 @@ public class AuthorityServiceImpl implements AuthorityService
|
||||
{
|
||||
canonicalName = authorityName;
|
||||
}
|
||||
return adminUsers.contains(canonicalName);
|
||||
// for MT, see note for getAuthoritiesForUser
|
||||
return (adminUsers.contains(canonicalName) || adminUsers.contains(tenantService.getBaseNameUser(canonicalName)));
|
||||
}
|
||||
|
||||
// IOC
|
||||
|
Reference in New Issue
Block a user