1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 23:16:13 +02:00

[ticket/14283] Check for user being group leader

PHPBB3-14283
This commit is contained in:
Richard McGirr 2015-11-25 06:02:53 -05:00
parent 3a55cead92
commit 31510c0ae7

View File

@ -1150,7 +1150,7 @@ switch ($mode)
// include modules for manage groups link display or not // include modules for manage groups link display or not
// need to ensure the module is active // need to ensure the module is active
$can_manage_group = false; $can_manage_group = false;
if ($user->data['is_registered']) if ($user->data['is_registered'] && $group_row['group_leader'])
{ {
if (!class_exists('p_master')) if (!class_exists('p_master'))
{ {
@ -1159,7 +1159,7 @@ switch ($mode)
$module = new p_master; $module = new p_master;
$module->list_modules('ucp'); $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; $can_manage_group = true;
} }