You are here

function simple_access_owner_grant in Simple Access 8.3

Same name and namespace in other branches
  1. 6.2 simple_access.module \simple_access_owner_grant()
  2. 7.2 simple_access.module \simple_access_owner_grant()

Action to grant permissions to the owner.

File

./simple_access.module, line 572
Builds simple access definition for content access.

Code

function simple_access_owner_grant($node, $context) {
  foreach (array_filter($context['sa_owner_permissions']) as $option) {
    $node->simple_access_owner[$option] = 1;
  }
}