* Fix acl and rights.

This commit is contained in:
sgm0422
2020-06-12 16:41:40 +08:00
parent 2d97663c5d
commit 5c5ef4eb0c
12 changed files with 260 additions and 99 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ class user extends control
/* Authorize him and save to session. */
$user->rights = $this->user->authorize($user->account);
$user->groups = $this->user->getGroups($user->account);
$user->view = $this->user->grantUserView($user->account, $user->rights['acls']);
$user->view = $this->user->grantUserView($user->account, $user->rights['acls'], $user->rights['programs']);
$this->session->set('user', $user);
$this->app->user = $this->session->user;
$this->loadModel('action')->create('user', $user->id, 'login');