For testing the permission for user