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

Commit 0ab9a6b

Browse files
committed
Send back the updated role to make sure the update() was working.
1 parent 9c1660f commit 0ab9a6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,9 @@ public function switchAction($action, $httpVars, $fileVars)
882882
} else {
883883
AuthService::updateRole($originalRole);
884884
}
885-
$output = array("ROLE" => $originalRole->getDataArray(true), "SUCCESS" => true);
885+
// Reload Role
886+
$savedValue = AuthService::getRole($originalRole->getId());
887+
$output = array("ROLE" => $savedValue->getDataArray(true), "SUCCESS" => true);
886888
} catch (Exception $e) {
887889
$output = array("ERROR" => $e->getMessage());
888890
}

0 commit comments

Comments
 (0)