ForestAdmin/forest-rails

View on GitHub
app/services/forest_liana/ability/exceptions/access_denied.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module ForestLiana
  module Ability
    module Exceptions
      class AccessDenied < ForestLiana::Errors::ExpectedError
        def initialize
          super(
            403,
            :forbidden,
            'You don\'t have permission to access this resource',
            'AccessDenied'
          )
        end
      end
    end
  end
end