mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
RM-5359 (An admin user can't declare as record a secured file)
This commit is contained in:
@@ -59,7 +59,7 @@ public final class PoliciesUtil
|
|||||||
*/
|
*/
|
||||||
public static Set<QName> getTypeAndAspectQNames(final NodeService nodeService, final NodeRef nodeRef)
|
public static Set<QName> getTypeAndAspectQNames(final NodeService nodeService, final NodeRef nodeRef)
|
||||||
{
|
{
|
||||||
return AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<Set<QName>>()
|
return AuthenticationUtil.runAsSystem(new AuthenticationUtil.RunAsWork<Set<QName>>()
|
||||||
{
|
{
|
||||||
public Set<QName> doWork()
|
public Set<QName> doWork()
|
||||||
{
|
{
|
||||||
@@ -81,6 +81,6 @@ public final class PoliciesUtil
|
|||||||
// done
|
// done
|
||||||
return qnames;
|
return qnames;
|
||||||
}
|
}
|
||||||
}, AuthenticationUtil.getAdminUserName());
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user