diff --git a/api/src/main/java/org/vivoweb/webapp/controller/freemarker/CreateAndLinkResourceController.java b/api/src/main/java/org/vivoweb/webapp/controller/freemarker/CreateAndLinkResourceController.java index 7b3365d43..f6e542649 100644 --- a/api/src/main/java/org/vivoweb/webapp/controller/freemarker/CreateAndLinkResourceController.java +++ b/api/src/main/java/org/vivoweb/webapp/controller/freemarker/CreateAndLinkResourceController.java @@ -301,7 +301,7 @@ protected ResponseValues processRequest(VitroRequest vreq) { ObjectPropertyStatementAccessObject aops = new ObjectPropertyStatementAccessObject(vreq.getJenaOntModel(), profileUri, SOME_PREDICATE, SOME_URI); if (!PolicyHelper.isAuthorizedForActions(vreq, AuthorizationRequest.or( - new SimpleAuthorizationRequest(aops, AccessOperation.ADD), + new SimpleAuthorizationRequest(adps, AccessOperation.ADD), new SimpleAuthorizationRequest(aops, AccessOperation.ADD)))) { return new TemplateResponseValues("unauthorizedForProfile.ftl"); }