Added some test data, and got the where clause working for checking if a user has a specific permission or not

Added some test data, and got the where clause working for checking if a user has a specific permission or not