Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Unserialization can fail on some systems, make sure to reload role if…
Browse files Browse the repository at this point in the history
… it's not an object after wakingup object.
  • Loading branch information
cdujeu committed Dec 18, 2015
1 parent d19bc7b commit c14269a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/plugins/core.conf/class.AbstractAjxpUser.php
Expand Up @@ -607,6 +607,9 @@ public function __sleep(){

public function __wakeup(){
$this->storage = ConfService::getConfStorageImpl();
if(is_string($this->personalRole)){
$this->personalRole = AuthService::getRole($this->personalRole);
}
$this->recomputeMergedRole();
}

Expand Down

0 comments on commit c14269a

Please sign in to comment.