Added a method to check if a user can perform an action