mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 05:38:52 +00:00
[ticket/14283] Check for user being group leader
PHPBB3-14283
This commit is contained in:
parent
3a55cead92
commit
31510c0ae7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue