ALF-9923 Share needs permissions details for wiki pages even when we have yet to do a write to the container, use the site permissions for that case

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30093 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-26 12:21:25 +00:00
parent c4236cec8e
commit 4636c7d17e

View File

@@ -65,6 +65,13 @@ public class WikiPageGet extends AbstractWikiWebScript
NodeRef container = siteService.getContainer( NodeRef container = siteService.getContainer(
site.getShortName(), WikiServiceImpl.WIKI_COMPONENT site.getShortName(), WikiServiceImpl.WIKI_COMPONENT
); );
// If there's no container yet, the site will do for permissions
if(container == null)
{
container = site.getNodeRef();
}
// Record these
model.put("container", container); model.put("container", container);
model.put("error", message); model.put("error", message);