mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge branch 'feature/RM-3344_AdminAndGuest' into 'master'
Feature/rm 3344 admin and guest RM-3344 Ensure that admin can't lose clearance and guest can't gain any clearance. Rather than use the guest role, as was used previously for classification clearance, we are explicitly checking the username. See merge request !160
This commit is contained in:
@@ -98,6 +98,16 @@ public class AuthenticationUtil
|
|||||||
return org.alfresco.repo.security.authentication.AuthenticationUtil.getSystemUserName();
|
return org.alfresco.repo.security.authentication.AuthenticationUtil.getSystemUserName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper method that gets the guest user name.
|
||||||
|
*
|
||||||
|
* @see org.alfresco.repo.security.authentication.AuthenticationUtil#getGuestUserName()
|
||||||
|
*/
|
||||||
|
public String getGuestUserName()
|
||||||
|
{
|
||||||
|
return org.alfresco.repo.security.authentication.AuthenticationUtil.getGuestUserName();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.alfresco.repo.security.authentication.AuthenticationUtil#isRunAsUserTheSystemUser()
|
* @see org.alfresco.repo.security.authentication.AuthenticationUtil#isRunAsUserTheSystemUser()
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user