Sha256: 4297282a372391fa7cabcfb2d431694fee0bd2d2d9e23d39e85e7be9b628ac0b

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

module {{namespace_module}}
  module Accounts
    module Update
      class Authorizer
        include Shogun::Authorizer
        include Accounts

        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/new/project/lib/namespace/accounts/update/authorizer.rb
shogun-6.4.1 scaffold/new/project/lib/namespace/accounts/update/authorizer.rb
shogun-6.4.0 scaffold/new/project/lib/namespace/accounts/update/authorizer.rb
shogun-6.3.0 scaffold/new/project/lib/namespace/accounts/update/authorizer.rb
shogun-6.2.3 scaffold/new/project/lib/namespace/accounts/update/authorizer.rb
shogun-6.2.2 scaffold/new/project/lib/namespace/accounts/update/authorizer.rb