Skip to content

hypeJunction/Elgg-access_grant

Repository files navigation

Access Grant for Elgg

Elgg 1.11+ Elgg 2.0+

Features

  • Allow users to access content without modifying its access id or expadning access collections

Usage

To allow user to access an entity that he/she wouldn't normally have access to, create a new access_grant relationship between them:

add_entity_relationship($entity->guid, 'access_grant', $user->guid);

To revoke access, remove the relationship.