Hi,

I'm running a pipeline that tries to insert a document with the default
permissions of the current user who has a role with read, insert and
update permissions.

        xdmp:document-insert($uri, $doc, xdmp:default-permissions(),
$collection)

I get an error complaining that I need at least one update permission.
When I log xdmp:default-permissions() I get an empty sequence.

Providing xdmp:permission("myUserRole", "update") solves the problem but
I would rather not hard code the role.  I tried to amp the function but
that did not seem to work either.  Is there a special permission that
the user must have to insert within a pipeline?

Thanks.

Bob Runstein
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to