View Source Pundit.NotAuthorizedError exception (pundit v1.0.2)
Exception raised when a user attempts to perform an action they're not authorized to perform.
Exception raised when a user attempts to perform an action they're not authorized to perform.