Skip to content

Commit

Permalink
Merge pull request #2 from VBGAMER45/release-2.1
Browse files Browse the repository at this point in the history
SQL Query not needed for guests since they can not be a group moderator
  • Loading branch information
live627 committed Jun 21, 2014
2 parents 88088d6 + b66349a commit dcbbcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Subs-Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ function rebuildModCache()
// What groups can they moderate?
$group_query = allowedTo('manage_membergroups') ? '1=1' : '0=1';

if ($group_query == '0=1')
if ($group_query == '0=1' && !$user_info['is_guest'])
{
$request = $smcFunc['db_query']('', '
SELECT id_group
Expand Down

0 comments on commit dcbbcaf

Please sign in to comment.