Fix ALF-2499 (Deleting a web project also deletes similarly named web projects - Potential Data Loss)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-04-20 15:36:45 +00:00
parent b53c4f4fae
commit d74f934789
4 changed files with 35 additions and 10 deletions

View File

@@ -251,14 +251,17 @@ public class SandboxServiceImpl implements SandboxService
{
sbInfos = new ArrayList<SandboxInfo>(1);
SandboxInfo authorSandbox = getAuthorSandbox(wpStoreId, currentUser);
if (authorSandbox != null)
if (userRole != null)
{
sbInfos.add(authorSandbox);
SandboxInfo authorSandbox = getAuthorSandbox(wpStoreId, currentUser);
if (authorSandbox != null)
{
sbInfos.add(authorSandbox);
}
sbInfos.add(getSandbox(WCMUtil.buildStagingStoreName(wpStoreId))); // get staging sandbox
}
sbInfos.add(getSandbox(WCMUtil.buildStagingStoreName(wpStoreId))); // get staging sandbox
}
return sbInfos;