From 1c939f54578a53434d39ded4221ab035132438e1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 6 Aug 2021 11:08:27 -0400 Subject: [PATCH] SearchKit - Fix permission to access task list This regressed in 06ea32c, as a new api action was added but permissions were not declared. --- ext/search_kit/Civi/Api4/SearchDisplay.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/search_kit/Civi/Api4/SearchDisplay.php b/ext/search_kit/Civi/Api4/SearchDisplay.php index fff6f151e6..3327eaa361 100644 --- a/ext/search_kit/Civi/Api4/SearchDisplay.php +++ b/ext/search_kit/Civi/Api4/SearchDisplay.php @@ -32,6 +32,8 @@ class SearchDisplay extends Generic\DAOEntity { public static function permissions() { $permissions = parent::permissions(); $permissions['default'] = ['administer CiviCRM data']; + $permissions['getSearchTasks'] = ['access CiviCRM']; + // Permission for run action is checked internally $permissions['run'] = []; return $permissions; } -- 2.25.1