From 60f6927bf6f07df7ea7c6bc56229ca790fb1a8bf Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Mon, 20 Oct 2014 14:42:55 +0000 Subject: [PATCH] ACE-3222 - Unable to delete an empty tenant - Fix to allow PersonService to delete the Guest user for a tenant git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@88755 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/security/person/PersonServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java b/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java index 23a93dd8ec..aa7ff0dcb8 100644 --- a/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java +++ b/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java @@ -1796,7 +1796,7 @@ public class PersonServiceImpl extends TransactionListenerAdapter implements Per public void beforeDeleteNode(NodeRef nodeRef) { String userName = (String) this.nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME); - if (this.authorityService.isGuestAuthority(userName)) + if (this.authorityService.isGuestAuthority(userName) && !this.tenantService.isTenantUser(userName)) { throw new AlfrescoRuntimeException("The " + userName + " user cannot be deleted."); }