mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
DM Usages/Quotas fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -104,13 +104,15 @@ public class UsageQuotaProtector implements NodeServicePolicies.OnUpdateProperti
|
|||||||
Long sizeQuotaAfter = (Long)after.get(ContentModel.PROP_SIZE_QUOTA);
|
Long sizeQuotaAfter = (Long)after.get(ContentModel.PROP_SIZE_QUOTA);
|
||||||
|
|
||||||
// Check for change in sizeCurrent
|
// Check for change in sizeCurrent
|
||||||
if ((sizeCurrentBefore != sizeCurrentAfter) && (! (authorityService.hasAdminAuthority() || authenticationService.isCurrentUserTheSystemUser())))
|
if ((sizeCurrentBefore != sizeCurrentAfter) && (sizeCurrentBefore != null) &&
|
||||||
|
(! (authorityService.hasAdminAuthority() || authenticationService.isCurrentUserTheSystemUser())))
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Update failed: protected property 'sizeCurrent'");
|
throw new AlfrescoRuntimeException("Update failed: protected property 'sizeCurrent'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for change in sizeQuota
|
// Check for change in sizeQuota
|
||||||
if ((sizeQuotaBefore != sizeQuotaAfter) && (! (authorityService.hasAdminAuthority() || authenticationService.isCurrentUserTheSystemUser())))
|
if ((sizeQuotaBefore != sizeQuotaAfter) && (sizeQuotaBefore != null) &&
|
||||||
|
(! (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