mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. WCM role and permissions fixes
- All users can now Read/Browse content in the Staging Area - None of the user roles (including Content Managers!) can create/edit/delete directly in the Staging Area - The only exception to this rule is the system admin user - who can do anything anywhere in the app… - Content Publisher roles can now view other users sandboxes - but in Read mode only - http://issues.alfresco.com/browse/WCM-211 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4803 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -163,9 +163,6 @@ public class WebProject
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/** Content Manager role name */
|
||||
private static final String ROLE_CONTENT_MANAGER = "ContentManager";
|
||||
|
||||
private final NodeRef nodeRef;
|
||||
|
||||
public WebProject(final NodeRef nodeRef)
|
||||
@@ -268,7 +265,7 @@ public class WebProject
|
||||
final NodeRef userInfoRef = ref.getChildRef();
|
||||
final String username = (String)nodeService.getProperty(userInfoRef, WCMAppModel.PROP_WEBUSERNAME);
|
||||
final String userrole = (String)nodeService.getProperty(userInfoRef, WCMAppModel.PROP_WEBUSERROLE);
|
||||
if (currentUser.equals(username) && ROLE_CONTENT_MANAGER.equals(userrole))
|
||||
if (currentUser.equals(username) && AVMConstants.ROLE_CONTENT_MANAGER.equals(userrole))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user