Skip to content

Commit

Permalink
Merge pull request #1658 from publishpress/feature/#1639_Register_pp_…
Browse files Browse the repository at this point in the history
…view_content_board_with_Capabilities

feature/#1639_Register_pp_view_content_board_with_Capabilities
  • Loading branch information
olatechpro authored May 23, 2024
2 parents bd4b411 + 55d6637 commit bea104b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions publishpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private function setup_actions()

add_filter('debug_information', [$this, 'filterDebugInformation']);

add_filter('cme_plugin_capabilities', [$this, 'filterCapabilities']);
add_filter('cme_plugin_capabilities', [$this, 'filterCapabilities'], 11);
}

/**
Expand All @@ -189,6 +189,7 @@ public static function activation_hook()
$genericCaps = [
'pp_view_calendar',
'pp_view_content_overview',
'pp_view_content_board',
'edit_post_subscriptions',
'pp_set_notification_channel',
'pp_delete_editorial_comment',
Expand Down Expand Up @@ -1196,12 +1197,15 @@ public function filterCapabilities($pluginCaps)
{

$caps = [
'pp_view_content_board',
'pp_view_calendar',
'pp_view_content_overview',
'pp_edit_editorial_metadata',
'pp_view_editorial_metadata',
'pp_delete_editorial_comment',
'pp_delete_others_editorial_comment',
'pp_edit_editorial_comment',
'pp_edit_others_editorial_comment',
'pp_edit_others_editorial_comment'
];

$pluginCaps['PublishPress Planner'] = $caps;
Expand Down

0 comments on commit bea104b

Please sign in to comment.