RM-1644 (Possible to create "report" records and copy records without Create Record capability)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-02-12 11:08:43 +00:00
parent c5d9f3c43f
commit 798d7f7cb9

View File

@@ -80,10 +80,6 @@ public class CreateCapability extends DeclarativeCapability
*/ */
public int evaluate(NodeRef destination, NodeRef linkee, QName assocType) public int evaluate(NodeRef destination, NodeRef linkee, QName assocType)
{ {
//if the user doesn't have Create Record capability deny access
if(capabilityService.getCapabilityAccessState(destination, RMPermissionModel.CREATE_RECORDS) == AccessStatus.DENIED)
return AccessDecisionVoter.ACCESS_DENIED;
if (linkee != null) if (linkee != null)
{ {
int state = checkRead(linkee, true); int state = checkRead(linkee, true);