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:
Jan Vonka
2007-12-04 10:15:39 +00:00
parent 4ff9b82be9
commit ebf766ef6c

View File

@@ -110,7 +110,7 @@ public class UsageQuotaProtector implements NodeServicePolicies.OnUpdateProperti
}
// 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'");
}