#SQL table not being selected properly?
1 messages · Page 1 of 1 (latest)
Your second query on getUserPerms is retrieving all users with userIsRoot = 0
Why are you doing two queries instead of one on getUserPerms?
You could probably do something like "select * from users where userUid = ? AND userIsRoot = 1"
If that returns anything you know he has permissions
Another way would be to just get the user normally into a user object and check if it has userIsRoot == 1/true
Worked, thanks g