hypejunction / access_grant
Access grant
Installs: 137
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:elgg-plugin
Requires
- php: >=5.5
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-10-29 04:52:58 UTC
README
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.