Created
August 21, 2013 19:50
-
-
Save iovino/6299293 to your computer and use it in GitHub Desktop.
This query will return true if the selected usergroup is marked as the banned group:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT IF(usergroup.genericoptions & 32, 0, 1) AS is_banned_group | |
FROM usergroup as usergroup | |
WHERE usergroup.usergroupid = 8; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment