mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user