From 693652fd3ce78a3f75be66dd46adfdb62d33d950 Mon Sep 17 00:00:00 2001
From: kpaxman <kpaxman@uwaterloo.ca>
Date: Thu, 11 Mar 2021 16:44:54 -0500
Subject: [PATCH] Clean up names for consistency

---
 src/UwPermissions/UwPermissions.php | 10 +++++-----
 uw_cfg_common.install               | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/UwPermissions/UwPermissions.php b/src/UwPermissions/UwPermissions.php
index 5afd9377..275d519d 100644
--- a/src/UwPermissions/UwPermissions.php
+++ b/src/UwPermissions/UwPermissions.php
@@ -77,12 +77,12 @@ class UwPermissions {
         UwPermissions::buildRolePermissionsListContentType(
          'uw_ct_contact'
         ),
-        'Create/edit group' =>
+        'Create/edit groups' =>
         UwPermissions::buildRolePermissionsListTaxonomyTerm(
           'uw_vocab_contact_group',
           ['create', 'edit']
         ),
-        'Delete group' =>
+        'Delete groups' =>
         UwPermissions::buildRolePermissionsListTaxonomyTerm(
           'uw_vocab_contact_group',
           ['delete']
@@ -179,12 +179,12 @@ class UwPermissions {
         UwPermissions::buildRolePermissionsListContentType(
          'uw_ct_profile'
         ),
-        'Create/edit type' =>
+        'Create/edit types' =>
         UwPermissions::buildRolePermissionsListTaxonomyTerm(
          'uw_vocab_profile_type',
           ['create', 'edit']
         ),
-        'Delete type' =>
+        'Delete types' =>
         UwPermissions::buildRolePermissionsListTaxonomyTerm(
          'uw_vocab_profile_type',
           ['delete']
@@ -209,7 +209,7 @@ class UwPermissions {
 
       // Special alert permissions.
       'Special alert' => [
-        'Administer Display' =>
+        'Use' =>
         UwPermissions::buildRolePermissionsListCustom(
           'administer special alert'
         ),
diff --git a/uw_cfg_common.install b/uw_cfg_common.install
index 915a0979..7acfdc6b 100644
--- a/uw_cfg_common.install
+++ b/uw_cfg_common.install
@@ -34,12 +34,12 @@ function uw_cfg_common_install() {
         'Content author',
         'Content editor',
       ],
-      'Create/edit group' => [
+      'Create/edit groups' => [
         'Site manager',
         'Content author',
         'Content editor',
       ],
-      'Delete group' => [
+      'Delete groups' => [
         'Site manager',
       ],
     ],
@@ -118,12 +118,12 @@ function uw_cfg_common_install() {
         'Content author',
         'Content editor',
       ],
-      'Create/edit type' => [
+      'Create/edit types' => [
         'Site manager',
         'Content author',
         'Content editor',
       ],
-      'Delete type' => [
+      'Delete types' => [
         'Site manager',
       ],
     ],
@@ -142,7 +142,7 @@ function uw_cfg_common_install() {
       ],
     ],
     'Special alert' => [
-      'Administer Display' => [
+      'Use' => [
         'Site manager',
       ],
     ],
-- 
GitLab