Sha256: 8e28f8298c47bc156ae4b27e00034d65f1eb00f6147b974346f371fb547446e8
Contents?: true
Size: 912 Bytes
Versions: 31
Compression:
Stored size: 912 Bytes
Contents
h1. Understanding Hydra Access Controls h2. How Permissions are Expressed in Hydra rightsMetadata h2. How Permissions are Indexed into Solr Documents h2. How you can use Alternative Field Names in Solr to Enforce Permissions h3. The Access Controls Evaluation helpers In your controllers and views you can test whether the current user has read or edit permissions on the current document by calling {reader?} or {editor?} To test another type of permission, you can use {test_permission?} h2. Assigning "Public" permissions In order to give permissions to the public (including users who are not logged in), simply grant group permissions for the "public" group. For example, to give the public "read" permissions, add this to the rightsMetadata <pre> <access type="read"> <machine> <group>public</group> </machine> </access> </pre> This will add "public" to read_access_t in solr.
Version data entries
31 entries across 31 versions & 1 rubygems