Last active
December 30, 2015 17:39
-
-
Save BitPuffin/7862061 to your computer and use it in GitHub Desktop.
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
sql""" | |
select exists (select 1 from groups where | |
user_id = (select users.id from users where username=?) and | |
group_id = (select group.id from groups where name='admin'))""", id)[0] == "t" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment