From fa2e8cd1b0773079b629445bca89ee10aaef2b8e Mon Sep 17 00:00:00 2001 From: liyuchun Date: Thu, 9 Sep 2021 14:43:41 +0800 Subject: [PATCH] * Fix bug #15004. --- module/action/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/action/model.php b/module/action/model.php index eba7679086..06abe6dae7 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -781,7 +781,7 @@ class actionModel extends model $docs = $this->doc->getPrivDocs(array_keys($libs), 0, 'all'); $actionCondition = $this->getActionCondition(); - if(!$actionCondition and isset($this->app->user->rights['acls']['actions'])) return array(); + if(!$actionCondition and !$this->app->user->admin and isset($this->app->user->rights['acls']['actions'])) return array(); /* Get actions. */ $actions = $this->dao->select('*')->from(TABLE_ACTION)