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

Commit

Permalink
Root group role: do not show "ROLE_..." parameters, even if they have…
Browse files Browse the repository at this point in the history
… scope "Role".
  • Loading branch information
cdujeu committed Sep 28, 2015
1 parent b5c57bc commit b3b2464
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -717,6 +717,7 @@ public function switchAction($action, $httpVars, $fileVars)
foreach ($nodes as $node) {
$pId = $node->parentNode->parentNode->attributes->getNamedItem("id")->nodeValue;
$origName = $node->attributes->getNamedItem("name")->nodeValue;
if($roleId == "AJXP_GRP_/" && strpos($origName, "ROLE_") ===0 ) continue;
$node->attributes->getNamedItem("name")->nodeValue = "AJXP_REPO_SCOPE_ALL/".$pId."/".$origName;
$nArr = array();
foreach ($node->attributes as $attrib) {
Expand Down

0 comments on commit b3b2464

Please sign in to comment.