hypejunction/access_grant

Access grant

1.1.1 2016-08-05 14:23 UTC

This package is auto-updated.

Last update: 2024-10-29 04:52:58 UTC


README

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.