Commit 1666f518 authored by Penny Leach's avatar Penny Leach
Browse files

groups: don't offer join link to owners, that's just daft

parent 7ca149b8
......@@ -147,7 +147,7 @@ $canpromote = (int)(bool)(($staff || $admin) && $controlled);
$canremove = (int)(bool)(($tutor && $controlled) || $staff || $admin || $owner);
$canleave = ($ismember && !$controlled);
$canrequestjoin = (!$ismember && empty($invited) && empty($requested) && $group->jointype == 'request');
$canjoin = (!$ismember && $group->jointype == 'open');
$canjoin = (!$ismember && $group->jointype == 'open' && !$owner);
$javascript = '';
if ($membership) {
......
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