canRead,D1Object-method | R Documentation |
Using the AccessPolicy, tests whether the subject has read permission for the object. This method is meant work prior to submission to a repository, and will show the permissions that would be enforced by the repository on submission. Currently it only uses the AccessPolicy to determine who can read (and not the rightsHolder field, which always can read an object). If an object has been granted read access by the special "public" subject, then all subjects have read access.
## S4 method for signature 'D1Object' canRead(x, subject)
x |
D1Object |
subject |
: the subject name of the person/system to check for read permissions |
The subject name used in both the AccessPolicy and in the 'subject'
argument to this method is a string value, but is generally formatted as an X.509
name formatted according to RFC 2253.
logical TRUE if the subject has read permission, or FALSE otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.