mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
DM Usages/Quotas fix for build/test (ActionServiceImplTest.testActionResult) - protected properties can be updated by System or Admin
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7517 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -110,7 +110,7 @@ public class UsageQuotaProtector implements NodeServicePolicies.OnUpdateProperti
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for change in sizeQuota
|
// Check for change in sizeQuota
|
||||||
if ((sizeQuotaBefore != sizeQuotaAfter) && (! authorityService.hasAdminAuthority()))
|
if ((sizeQuotaBefore != sizeQuotaAfter) && (! (authorityService.hasAdminAuthority() || authenticationService.isCurrentUserTheSystemUser())))
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Update failed: protected property 'sizeQuota'");
|
throw new AlfrescoRuntimeException("Update failed: protected property 'sizeQuota'");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user