diff --git a/src/UwPermissions/UwPermissions.php b/src/UwPermissions/UwPermissions.php index 05b9e4c9ddd1fb772e0cbaf509650144c16791ea..f12438a3d2e759f50100cfd272abcbd4089a43ed 100644 --- a/src/UwPermissions/UwPermissions.php +++ b/src/UwPermissions/UwPermissions.php @@ -155,6 +155,24 @@ class UwPermissions { ), ], + // Profile permissions. + 'Profile' => [ + 'Use content type' => + UwPermissions::buildRolePermissionsListContentType( + 'uw_ct_profile' + ), + 'Create/edit type' => + UwPermissions::buildRolePermissionsListTaxonomyTerm( + 'uw_vocab_profile_type', + ['create', 'edit'] + ), + 'Delete type' => + UwPermissions::buildRolePermissionsListTaxonomyTerm( + 'uw_vocab_profile_type', + ['delete'] + ), + ], + // Sidebar permissions. 'Sidebar' => [ 'Use content type' => diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 13801df04ebedd2d3c45bb73ab8a7bd0597972ff..a0628aafdbc458fea4193fed4c5ba99a1384886c 100644 --- a/uw_cfg_common.install +++ b/uw_cfg_common.install @@ -97,6 +97,21 @@ function uw_cfg_common_install() { 'Site manager', ], ], + 'Profile' => [ + 'Use content type' => [ + 'Site manager', + 'Content author', + 'Content editor', + ], + 'Create/edit type' => [ + 'Site manager', + 'Content author', + 'Content editor', + ], + 'Delete type' => [ + 'Site manager', + ], + ], 'Sidebar' => [ 'Use content type' => [ 'Site manager',