You are here

function farm_asset_farm_access_perms in farmOS 7

Implements hook_farm_access_perms().

Set up default CRUD permissions for all farm asset entity types.

File

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

Code

function farm_asset_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('farm_asset', $role);

  // Grant access to view farm assets.
  $perms[] = 'view farm assets';
  return $perms;
}