From eae6e6277da963e477a97e51201565be34f3c25e Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Tue, 3 Oct 2023 13:42:01 -0400 Subject: [PATCH] Fix ability to view Manager Actions (#16473) * Update logs controller Update permissions key to new 3.x mgr_log_view key * Code formatting update --- .../default/system/logs/index.class.php | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/manager/controllers/default/system/logs/index.class.php b/manager/controllers/default/system/logs/index.class.php index 8d6b1c28d5f..cabd03ea3b3 100644 --- a/manager/controllers/default/system/logs/index.class.php +++ b/manager/controllers/default/system/logs/index.class.php @@ -1,4 +1,5 @@ modx->hasPermission('logs'); + public function checkPermissions() + { + return $this->modx->hasPermission('mgr_log_view'); } /** * Register custom CSS/JS for the page * @return void */ - public function loadCustomCssJs() { - $this->addJavascript($this->modx->getOption('manager_url').'assets/modext/widgets/system/modx.grid.manager.log.js'); - $this->addJavascript($this->modx->getOption('manager_url').'assets/modext/sections/system/logs.js'); + public function loadCustomCssJs() + { + $this->addJavascript($this->modx->getOption('manager_url') . 'assets/modext/widgets/system/modx.grid.manager.log.js'); + $this->addJavascript($this->modx->getOption('manager_url') . 'assets/modext/sections/system/logs.js'); $this->addHtml("