Skip to content

Commit

Permalink
Package permissions for interpersonal taxonomy vocab
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Aug 31, 2017
1 parent 7b84941 commit 13c1e95
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
function ma_person_user_default_permissions() {
$permissions = array();

// Exported permission: 'administer interpersonal_relationship vocabulary terms'.
$permissions['administer interpersonal_relationship vocabulary terms'] = array(
'name' => 'administer interpersonal_relationship vocabulary terms',
'roles' => array(
'Mukurtu Administrator' => 'Mukurtu Administrator',
'administrator' => 'administrator',
),
'module' => 'vppr',
);

// Exported permission: 'clear import_people feeds'.
$permissions['clear import_people feeds'] = array(
'name' => 'clear import_people feeds',
Expand Down Expand Up @@ -99,7 +109,10 @@ function ma_person_user_default_permissions() {
// Exported permission: 'delete terms in interpersonal_relationship'.
$permissions['delete terms in interpersonal_relationship'] = array(
'name' => 'delete terms in interpersonal_relationship',
'roles' => array(),
'roles' => array(
'Mukurtu Administrator' => 'Mukurtu Administrator',
'administrator' => 'administrator',
),
'module' => 'taxonomy',
);

Expand All @@ -126,7 +139,10 @@ function ma_person_user_default_permissions() {
// Exported permission: 'edit terms in interpersonal_relationship'.
$permissions['edit terms in interpersonal_relationship'] = array(
'name' => 'edit terms in interpersonal_relationship',
'roles' => array(),
'roles' => array(
'Mukurtu Administrator' => 'Mukurtu Administrator',
'administrator' => 'administrator',
),
'module' => 'taxonomy',
);

Expand All @@ -153,7 +169,10 @@ function ma_person_user_default_permissions() {
// Exported permission: 'merge interpersonal_relationship terms'.
$permissions['merge interpersonal_relationship terms'] = array(
'name' => 'merge interpersonal_relationship terms',
'roles' => array(),
'roles' => array(
'Mukurtu Administrator' => 'Mukurtu Administrator',
'administrator' => 'administrator',
),
'module' => 'term_merge',
);

Expand Down
2 changes: 2 additions & 0 deletions sites/all/modules/custom/features/ma_person/ma_person.info
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies[] = text
dependencies[] = textformatter
dependencies[] = views
dependencies[] = views_autocomplete
dependencies[] = vppr
features[ctools][] = ds:ds:1
features[ctools][] = feeds:feeds_importer_default:1
features[ctools][] = feeds_tamper:feeds_tamper_default:2
Expand Down Expand Up @@ -105,6 +106,7 @@ features[node][] = person
features[paragraphs][] = person_relationship_bundle
features[paragraphs][] = text_section
features[taxonomy][] = interpersonal_relationship
features[user_permission][] = administer interpersonal_relationship vocabulary terms
features[user_permission][] = clear import_people feeds
features[user_permission][] = clear import_people_taxonomy_terms feeds
features[user_permission][] = create paragraph content person_relationship_bundle
Expand Down

0 comments on commit 13c1e95

Please sign in to comment.