Sha256: 07056410a739e21adada7cb1c7208de5945d8b5c3990d699f1de5c9d0a49acaa

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

module {{namespace_module}}
  module {{resource_module}}
    module List
      class Authorizer
        include Shogun::Authorizer
        include {{resource_module}}

        def initialize(requester:, resource:)
          if requester
            @requester = requester.account
          end
          @resource = resource
        end

        def allowed?
          @requester == @resource
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shogun-6.4.2 scaffold/generate/resource/list/authorizer.rb
shogun-6.4.1 scaffold/generate/resource/list/authorizer.rb
shogun-6.4.0 scaffold/generate/resource/list/authorizer.rb
shogun-6.3.0 scaffold/generate/resource/list/authorizer.rb
shogun-6.2.3 scaffold/generate/resource/list/authorizer.rb
shogun-6.2.2 scaffold/generate/resource/list/authorizer.rb