Skip to content

Commit

Permalink
Merge branch 'develop' into October2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed Oct 26, 2022
2 parents fedcefc + 990c58b commit 108de3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Model/GrouperGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class GrouperGroup extends GrouperLiteAppModel
private $templateCreationGroup = 'ref:workinggroupadmins';

/** @var string Group whose members cannot see Grouper button, even if admin */
private $grouperVisibleGroup = 'app:comanage:LiteUI:grouperNotVisible';
private $grouperVisibleGroup = 'app:comanage:LiteUI:grouperVisible';

private $wgStemsTopLevel = array(
'ref:incommon-collab',
Expand Down Expand Up @@ -132,10 +132,10 @@ public function isGrouperVisible(string $userId)
$memberOfGroups = $this->grouperAPI->getGrouperMemberOfGroups($args);

//now cycle through and see if part of correct group to be able to use template
$member = 'T';
$member = 'F';
foreach ($memberOfGroups as $memberOfGroup) {
if ($memberOfGroup['name'] == $this->grouperVisibleGroup) {
$member = 'F';
$member = 'T';
break;
}
}
Expand Down

0 comments on commit 108de3e

Please sign in to comment.