Fix bug in hasPermission method for Person class if user is not logged in