From 96cd6f5e6e283ca950cf4765330053cedaf37c87 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Mon, 17 Aug 2020 10:14:42 +0800 Subject: [PATCH] * Fix common. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index ef33fc163d..9082eaa781 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1612,7 +1612,7 @@ EOD; if(!defined('IN_UPGRADE') and $inProgram) { /* Check program priv. */ - if(strpos(",{$this->app->user->view->programs},", ",{$this->session->program},") === false) $this->loadModel('program')->accessDenied(); + if(strpos(",{$this->app->user->view->programs},", ",{$this->session->program},") === false and !$this->app->user->admin) $this->loadModel('program')->accessDenied(); $this->resetProgramPriv($module, $method); if(!commonModel::hasPriv($module, $method)) $this->deny($module, $method, false); }