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

Commit

Permalink
Make test on personalRole stronger if there is an error at deserializ…
Browse files Browse the repository at this point in the history
…ation time.
  • Loading branch information
cdujeu committed Dec 21, 2015
1 parent 7948db1 commit 7df6ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/core.conf/class.AbstractAjxpUser.php
Expand Up @@ -607,8 +607,8 @@ public function __sleep(){

public function __wakeup(){
$this->storage = ConfService::getConfStorageImpl();
if(is_string($this->personalRole)){
$this->personalRole = AuthService::getRole($this->personalRole);
if(!is_object($this->personalRole)){
$this->personalRole = AuthService::getRole("AJXP_USR_/".$this->getId());
}
$this->recomputeMergedRole();
}
Expand Down

0 comments on commit 7df6ddd

Please sign in to comment.