diff --git a/config/install/user.role.uw_role_site_manager.yml b/config/install/user.role.uw_role_site_manager.yml index 5ceb83d30d1e6adfc1503c3a3982610a9b4a9bac..5a749b485884dc5806866388ecf0054dd3b28a3a 100644 --- a/config/install/user.role.uw_role_site_manager.yml +++ b/config/install/user.role.uw_role_site_manager.yml @@ -153,6 +153,8 @@ permissions: - 'edit terms in uw_vocab_catalogs' - 'edit terms in uw_vocab_news_tags' - 'make smart dates recur' + - 'rearrange contacts' + - 'rearrange profiles' - 'reschedule smart date recur instances' - 'revert all revisions' - 'revert uw_ct_blog revisions' diff --git a/src/UwPermissions/UwPermissions.php b/src/UwPermissions/UwPermissions.php index 275d519d296801c3189065bf8d4e7a41653cabb3..bc083a585a5cbffde4caf20b37d50bb628ccda6c 100644 --- a/src/UwPermissions/UwPermissions.php +++ b/src/UwPermissions/UwPermissions.php @@ -87,6 +87,10 @@ class UwPermissions { 'uw_vocab_contact_group', ['delete'] ), + 'Rearrange' => + UwPermissions::buildRolePermissionsListCustom( + 'rearrange contacts' + ), ], // Catalog permissions. @@ -189,6 +193,10 @@ class UwPermissions { 'uw_vocab_profile_type', ['delete'] ), + 'Rearrange' => + UwPermissions::buildRolePermissionsListCustom( + 'rearrange profiles' + ), ], // Sidebar permissions. diff --git a/uw_cfg_common.links.menu.yml b/uw_cfg_common.links.menu.yml index 6162d6c70eadc9c61be851b0787eced66ab3d220..15bfaeb67413f3822c1a8499db58a87db316d74b 100644 --- a/uw_cfg_common.links.menu.yml +++ b/uw_cfg_common.links.menu.yml @@ -172,17 +172,23 @@ uw_content_management.content_types.contact: url: internal:/node/add/uw_ct_contact weight: 0 +uw_content_management.content_types.contact.rearrange: + title: 'Rearrange' + parent: uw_content_management.content_types.contact + url: internal:/admin/rearrange-contacts + weight: 0 + uw_content_management.content_types.contact:.add_contact_tag: title: 'Add contact tag' parent: uw_content_management.content_types.contact url: internal:/admin/structure/taxonomy/manage/uw_vocab_contact_group/add - weight: 0 + weight: 1 uw_content_management.content_types.contact.list_contact_tag: title: 'List contact tags' parent: uw_content_management.content_types.contact url: internal:/admin/structure/taxonomy/manage/uw_vocab_contact_group/overview - weight: 0 + weight: 2 uw_content_management.content_types.event: title: 'Event' @@ -238,22 +244,28 @@ uw_content_management.content_types.profile: url: internal:/node/add/uw_ct_profile weight: 0 -uw_content_management.content_types.sidebar: - title: 'Sidebar' - parent: uw_content_management.content_types - url: internal:/node/add/uw_ct_sidebar +uw_content_management.content_types.profile.rearrange: + title: 'Rearrange' + parent: uw_content_management.content_types.profile + url: internal:/admin/rearrange-profiles weight: 0 uw_content_management.content_types.profile.add_profile_type: title: 'Add profile type' parent: uw_content_management.content_types.profile url: internal:/admin/structure/taxonomy/manage/uw_vocab_profile_type/add - weight: 0 + weight: 1 uw_content_management.content_types.profile.list_profile_types: title: 'List profile types' parent: uw_content_management.content_types.profile url: internal:/admin/structure/taxonomy/manage/uw_vocab_profile_type/overview + weight: 2 + +uw_content_management.content_types.sidebar: + title: 'Sidebar' + parent: uw_content_management.content_types + url: internal:/node/add/uw_ct_sidebar weight: 0 uw_content_management.content_types.site_footer: diff --git a/uw_cfg_common.permissions.yml b/uw_cfg_common.permissions.yml index d5920bd21dfcdd11ddc580cb639c459b4ea62609..42bd70c0388f4d212b208c3f7c84a614cc77401c 100644 --- a/uw_cfg_common.permissions.yml +++ b/uw_cfg_common.permissions.yml @@ -19,3 +19,9 @@ title: 'Administer Universal Analytics' description: 'Allows add/update of Google Analytics and Google site ownership conformation values.' restrict access: true +'rearrange contacts': + title: 'Rearrange contacts' + description: 'Allows access to the rearrange contacts page.' +'rearrange profiles': + title: 'Rearrange profiles' + description: 'Allows access to the rearrange profiles page.'