aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2015-11-18 06:29:23 -0500
committerRichard McGirr <rmcgirr83@gmail.com>2015-11-18 06:29:23 -0500
commit3a55cead92a2b8118aa86e43740ca258b7eb0607 (patch)
tree4bcb06865fd1f649f857c8f74669ad31557ec0a8 /phpBB/memberlist.php
parentdf9443a3c65f63da41fd12b2369302c0f336ba8c (diff)
downloadforums-3a55cead92a2b8118aa86e43740ca258b7eb0607.tar
forums-3a55cead92a2b8118aa86e43740ca258b7eb0607.tar.gz
forums-3a55cead92a2b8118aa86e43740ca258b7eb0607.tar.bz2
forums-3a55cead92a2b8118aa86e43740ca258b7eb0607.tar.xz
forums-3a55cead92a2b8118aa86e43740ca258b7eb0607.zip
[ticket/14283] Remove group founder and free up memory
PHPBB3-14283
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php22
1 files changed, 13 insertions, 9 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index ba7ed60298..325c575ea9 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -1149,17 +1149,21 @@ switch ($mode)
}
// include modules for manage groups link display or not
// need to ensure the module is active
- if (!class_exists('p_master'))
- {
- include($phpbb_root_path . 'includes/functions_module.' . $phpEx);
- }
- $module = new p_master;
- $module->list_modules('ucp');
-
$can_manage_group = false;
- if ($module->is_active('ucp_groups', 'manage') && ($group_row['group_leader'] || ($group_row['group_founder_manage'] && $user->data['user_type'] == USER_FOUNDER)))
+ if ($user->data['is_registered'])
{
- $can_manage_group = true;
+ if (!class_exists('p_master'))
+ {
+ include($phpbb_root_path . 'includes/functions_module.' . $phpEx);
+ }
+ $module = new p_master;
+ $module->list_modules('ucp');
+
+ if ($module->is_active('ucp_groups', 'manage') && $group_row['group_leader'])
+ {
+ $can_manage_group = true;
+ }
+ unset($module);
}
$template->assign_vars(array(