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:
Tom Page
2016-04-28 10:00:23 +01:00

View File

@@ -98,6 +98,16 @@ public class AuthenticationUtil
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()
*/