Working with roles, and checking for permissions