* code for task #4874.
This commit is contained in:
@@ -435,7 +435,10 @@ class block extends control
|
||||
$this->app->user = new stdclass();
|
||||
$this->app->user->account = 'guest';
|
||||
}
|
||||
$this->app->user->admin = strpos($this->app->company->admins, ",{$this->app->user->account},") !== false;
|
||||
$this->app->user->rights = $this->loadModel('user')->authorize($this->app->user->account);
|
||||
$this->app->user->groups = $this->user->getGroups($this->app->user->account);
|
||||
$this->app->user->view = $this->user->grantUserView($this->app->user->account, $this->app->user->rights['acls']);
|
||||
|
||||
$sso = base64_decode($this->get->sso);
|
||||
$this->view->sso = $sso;
|
||||
|
||||
@@ -74,11 +74,12 @@ class sso extends control
|
||||
|
||||
$this->user->cleanLocked($user->account);
|
||||
/* Authorize him and save to session. */
|
||||
$user->admin = strpos($this->app->company->admins, ",{$user->account},") !== false;
|
||||
$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->last = date(DT_DATETIME1, $last);
|
||||
$user->lastTime = $user->last;
|
||||
$user->admin = strpos($this->app->company->admins, ",{$user->account},") !== false;
|
||||
$user->modifyPassword = ($user->visits == 0 and !empty($this->config->safe->modifyPasswordFirstLogin));
|
||||
if($user->modifyPassword) $user->modifyPasswordReason = 'modifyPasswordFirstLogin';
|
||||
if(!$user->modifyPassword and !empty($this->config->safe->changeWeak))
|
||||
|
||||
Reference in New Issue
Block a user