stops using deprecated method to know if user has access to the action