* Fix bug and add program admin.

This commit is contained in:
sgm0422
2020-06-17 15:08:09 +08:00
parent 8e706b6e0c
commit 57500e2102
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -1641,6 +1641,7 @@ EOD;
foreach($programRights as $programRight) $programRightGroup[$programRight->module][$programRight->method] = 1;
/* Reset priv by program privway. */
$this->app->user->rights = $this->loadModel('user')->authorize($this->app->user->account);
$rights = $this->app->user->rights['rights'];
if($program->privway == 'extend') $this->app->user->rights['rights'] = array_merge_recursive($programRightGroup, $rights);
if($program->privway == 'reset')