diff --git a/modules/farm/farm_import/farm_import.module b/modules/farm/farm_import/farm_import.module index f45e3116..b482124e 100644 --- a/modules/farm/farm_import/farm_import.module +++ b/modules/farm/farm_import/farm_import.module @@ -15,6 +15,23 @@ function farm_import_ctools_plugin_api($module = NULL, $api = NULL) { return $return; } +/** + * Implements hook_farm_access_perms(). + */ +function farm_import_farm_access_perms($role) { + $perms = array(); + + // Grant farm managers access to Feeds importers. + if ($role == 'Farm Manager') { + $types = farm_asset_types(); + foreach ($types as $type) { + $perms[] = 'import farm_asset_' . $type->type . ' feeds'; + } + } + + return $perms; +} + /** * Implements hook_farm_ui_actions(). */