You are here

function log_farm_access_perms in farmOS 7

Implements hook_farm_access_perms().

File

modules/farm/farm_access/farm_access.farm_access.inc, line 42
Farm access hooks implemented by farm access module.

Code

function log_farm_access_perms($role) {

  // Use the helper function to generate a list of entity type bundles
  // permissions for the given role.
  $perms = farm_access_entity_bundles_role_perms('log', $role);

  // View all logs.
  $perms[] = 'view all logs';
  return $perms;
}