Add debug log entry when checking permission groups.

This commit is contained in:
KHobbits 2013-10-20 17:45:37 +01:00
parent b1d422ba8f
commit f36f5ec0ce

View File

@ -651,7 +651,12 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
@Override
public boolean inGroup(final String group)
{
return ess.getPermissionsHandler().inGroup(base, group);
final boolean result = ess.getPermissionsHandler().inGroup(base, group);
if (ess.getSettings().isDebug())
{
ess.getLogger().log(Level.INFO, "checking if " + base.getName() + " is in " + group + " - " + result);
}
return result;
}
@Override