mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (4.3/Cloud)
73689: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 73592: Merged DEV to V4.2-BUG-FIX 73341 : MNT-11595 : Downgrading permission from Manager to Consumer, user still allowed to create WIKI pages Add the changes - for wiki container we will get site permission. Add unit test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -67,18 +67,9 @@ public class WikiPageGet extends AbstractWikiWebScript
|
||||
status.setMessage(message);
|
||||
status.setRedirect(true);
|
||||
|
||||
// Grab the container, used in permissions checking
|
||||
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();
|
||||
}
|
||||
|
||||
// MNT-11595 Downgrading permission from Manager to Consumer, user still allowed to create WIKI pages
|
||||
// Record these
|
||||
model.put("container", container);
|
||||
model.put("container", site.getNodeRef());
|
||||
model.put("error", rb.getString(MSG_NOT_FOUND));
|
||||
|
||||
// Bail out
|
||||
|
Reference in New Issue
Block a user