is_authorized | R Documentation |
Check if the user has authorization to perform an action on an object.
is_authorized(node, ids, action)
node |
(MNode/CNode) The Member/Coordinating Node to query. |
ids |
(character) The PID or SID to check. |
action |
(character) One of read, write, or changePermission. |
(logical)
## Not run:
cn <- CNode('STAGING2')
mn <- getMNode(cn,"urn:node:mnTestKNB")
pids <- c("urn:uuid:3e5307c4-0bf3-4fd3-939c-112d4d11e8a1",
"urn:uuid:23c7cae4-0fc8-4241-96bb-aa8ed94d71fe")
is_authorized(mn, pids, "write")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.