Danny Sokolsky wrote:

> I tried this and it worked (all run as a user with the
> admin role)

  Thanks a lot for those useful explanations!

  I think I am quite close to have it running.  Everything's fine now,
except that when I access http://localhost:8003/browser.xq (8003 is the
Tmp HTTP server I created for this test,) the server serves the
browser.xq file itself.

  I've set the execute permission with:

    xdmp:document-add-permissions(
        "Tmp/browser.xq",
        xdmp:permission("admin", "execute")
      )

then:

    xdmp:get-current-user(),
    xdmp:document-get-permissions("Tmp/browser.xq")
    =>
    admin
    <sec:permission xmlns:sec="http://marklogic.com/xdmp/security";>
       <sec:capability>execute</sec:capability>
       <sec:role-id>9324775496087773648</sec:role-id>
    </sec:permission>

  In the admin console, I checked the admin role is ticked for user
admin.

  Did I miss something to set or to check?

  Regards,

--drkm




















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

Reply via email to