Commit c243ea69 authored by Andrew Robert Nicols's avatar Andrew Robert Nicols
Browse files

Correction: Only show 'Edit group membership' link if relevant (Fixes #619115).



The 'Edit group membership' link should only be shown if there are invite
or controlled groups.  Originally, I misread the way this worked and
thought that the javascript was simply missing.  On a second look, I
realised that the links shouldn't be shown unless there are invite or
controlled groups.
Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent ffaf150f
......@@ -39,7 +39,7 @@
{/if}
</li>
{/if}
{if $admingroups}
{if $admingroups->invite || $admingroups->controlled}
<li><a href="" onclick="showGroupBox(event, {$user->id})">{str tag='editgroupmembership' section='group'}</a></li>
{/if}
</ul>
......
......@@ -106,7 +106,7 @@ if (!$data['count']) {
}
}
$javascript = array('paginator', 'groupbox');
$javascript = array('paginator');
if ($admingroups->invite || $admingroups->controlled) {
array_push($javascript, 'groupbox');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment