Method: Trailblazer::Endpoint::Adapter::API::Errors::Handlers#handle_not_authorized

Defined in:
lib/trailblazer/endpoint/adapter.rb

#handle_not_authorized(ctx, errors:) ⇒ Object



93
94
95
# File 'lib/trailblazer/endpoint/adapter.rb', line 93

def handle_not_authorized(ctx, errors:, **)
  errors.message = "Action not allowed due to a policy setting."
end