Skip to content

Commit

Permalink
Add the xdbc-eval and xdbc-invoke privileges to caselaw-reader
Browse files Browse the repository at this point in the history
These two privileges are needed to cal lthe `eval` and `invoke` endpoints
on the Marklogic REST API.

These privileges had been set via the Marklogic admin console on staging, but
not copied over to the Gradle config.

Todo: Find a better way to make sure any changes made in the consoles are
recorded in the Gradle config!
  • Loading branch information
Laura Porter committed Oct 6, 2022
1 parent e0e3812 commit 27d87bf
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"role-name" : "caselaw-reader",
"description" : "Can view documents, not including unpublished documents, but not edit",
"role" : [ "rest-reader", "caselaw-nobody", "security", "dls-user", "dls-internal" ]
"role" : [ "rest-reader", "caselaw-nobody", "security", "dls-user", "dls-internal" ],
"privilege" : [ {
"privilege-name" : "xdbc:eval",
"action" : "http://marklogic.com/xdmp/privileges/xdbc-eval",
"kind" : "execute"
}, {
"privilege-name" : "xdbc:invoke",
"action" : "http://marklogic.com/xdmp/privileges/xdbc-invoke",
"kind" : "execute"
} ]
}

0 comments on commit 27d87bf

Please sign in to comment.