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

Version Path
hydra-head-4.0.0.rc5 HYDRA_ACCESS_CONTROLS.textile
hydra-head-4.0.0.rc4 HYDRA_ACCESS_CONTROLS.textile
hydra-head-4.0.0.rc3 HYDRA_ACCESS_CONTROLS.textile
hydra-head-4.0.0.rc2 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.3.0 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.2.2 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.2.1 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.2.0 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.2.0.pre3 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.2.0.pre2 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.2.0.pre1 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.5 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.4 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.3 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.2 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.1 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.0 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.0.rc2 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.0.rc1 HYDRA_ACCESS_CONTROLS.textile
hydra-head-3.1.0.pre5 HYDRA_ACCESS_CONTROLS.textile