mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
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:
@@ -65,6 +65,13 @@ public class WikiPageGet extends AbstractWikiWebScript
|
||||
NodeRef container = siteService.getContainer(
|
||||
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("error", message);
|
||||
|
||||
|
Reference in New Issue
Block a user