Permalink
Browse files

Fix addRole when updating case. Fix #1024

  • Loading branch information...
1 parent c6b1290 commit b208c8b9e29e5a7e999b744770a462e255fa9fdb @cdujeu cdujeu committed Aug 25, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/plugins/core.conf/AbstractUser.php
@@ -142,7 +142,9 @@ public function storageExists(){
public function addRole($roleObject)
{
if (isSet($this->roles[$roleObject->getId()])) {
- // NOTHING SPECIAL TO DO !
+ // Role may have been updated, but ajxp.roles does not need reload.
+ $this->roles[$roleObject->getId()] = $roleObject;
+ $this->recomputeMergedRole();
return;
}
if(!isSet($this->rights["ajxp.roles"])) $this->rights["ajxp.roles"] = array();

0 comments on commit b208c8b

Please sign in to comment.