is_public_read: Check whether an object has public read access

View source: R/access.R

is_public_readR Documentation

Check whether an object has public read access

Description

Check whether objects have public read access. No token needs to be set to use this function.

Usage

is_public_read(mn, pids, use.names = TRUE)

Arguments

mn

(MNode) The Member Node.

pids

(character) The PIDs of the objects to check for public read access.

use.names

(logical) If TRUE, PIDs will be used as names for the result unless PIDs have names already, in which case those names will be used for the result.

Value

(logical) Whether an object has public read access.

Examples

## 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_public_read(mn, pids)

## End(Not run)

NCEAS/arcticdatautils documentation built on Aug. 28, 2023, 12:10 p.m.