aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2015-11-25 06:02:53 -0500
committerRichard McGirr <rmcgirr83@gmail.com>2015-11-25 06:33:07 -0500
commit31510c0ae7bfa154d1c94d2146cf1598d9fcdab6 (patch)
tree085fb194b770476d78ca08f33387b5c6cec0e71e /phpBB
parent3a55cead92a2b8118aa86e43740ca258b7eb0607 (diff)
downloadforums-31510c0ae7bfa154d1c94d2146cf1598d9fcdab6.tar
forums-31510c0ae7bfa154d1c94d2146cf1598d9fcdab6.tar.gz
forums-31510c0ae7bfa154d1c94d2146cf1598d9fcdab6.tar.bz2
forums-31510c0ae7bfa154d1c94d2146cf1598d9fcdab6.tar.xz
forums-31510c0ae7bfa154d1c94d2146cf1598d9fcdab6.zip
[ticket/14283] Check for user being group leader
PHPBB3-14283
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/memberlist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 325c575ea9..6be44587f5 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -1150,7 +1150,7 @@ switch ($mode)
// include modules for manage groups link display or not
// need to ensure the module is active
$can_manage_group = false;
- if ($user->data['is_registered'])
+ if ($user->data['is_registered'] && $group_row['group_leader'])
{
if (!class_exists('p_master'))
{
@@ -1159,7 +1159,7 @@ switch ($mode)
$module = new p_master;
$module->list_modules('ucp');
- if ($module->is_active('ucp_groups', 'manage') && $group_row['group_leader'])
+ if ($module->is_active('ucp_groups', 'manage'))
{
$can_manage_group = true;
}