From 55d66372d2a131ff805cf77c78e5974d82eadb3a Mon Sep 17 00:00:00 2001 From: olatechpro Date: Thu, 23 May 2024 04:53:11 +0100 Subject: [PATCH] Register pp_view_content_board with Capabilities #1639 --- publishpress.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/publishpress.php b/publishpress.php index a6cba77e..239ac650 100644 --- a/publishpress.php +++ b/publishpress.php @@ -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); } /** @@ -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', @@ -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;