RM-3344 Ensure we are not downgrading admin or upgrading guest.

This is a first pass at preventing changes to the clearance of admin or guest.
Previously we weren't allowing any changes to their clearance, but when
working with security markings, admin in particular needs to occasionally gain
a new mark when a custom group is created.  Currently that clearing is not
happening, but this change does not prevent it, if needed.

Also remove an unused method from the CaveatMarkingServiceImpl, as the class
is already very full.
This commit is contained in:
Tom Page
2016-04-27 16:12:11 +01:00
parent 4d14d17fb4
commit 6f8fecae4b

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()
*/