Skip to content

Commit

Permalink
Fixed authorization request for claiming DOI on related profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg authored and brianjlowe committed Feb 10, 2025
1 parent da24c1d commit a6f8546
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ protected ResponseValues processRequest(VitroRequest vreq) {
ObjectPropertyStatementAccessObject opsAccessObject = new ObjectPropertyStatementAccessObject(
vreq.getJenaOntModel(), profileUri, SOME_PREDICATE, SOME_URI);
if (!PolicyHelper.isAuthorizedForActions(vreq,
AuthorizationRequest.or(new SimpleAuthorizationRequest(dpsAccessObject, AccessOperation.ADD),
new SimpleAuthorizationRequest(opsAccessObject, AccessOperation.ADD)))) {
AuthorizationRequest.or(new SimpleAuthorizationRequest(dpsAccessObject, AccessOperation.EDIT),
new SimpleAuthorizationRequest(opsAccessObject, AccessOperation.EDIT)))) {
return new TemplateResponseValues("unauthorizedForProfile.ftl");
}
}
Expand Down

0 comments on commit a6f8546

Please sign in to comment.