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); }