Sha256: aa8cd6843e13a755e68c9dae672bf62a6317b80937289d75d0571070d9e0e580

Contents?: true

Size: 400 Bytes

Versions: 135

Compression:

Stored size: 400 Bytes

Contents

module Katello
  module Authorization::GpgKey
    extend ActiveSupport::Concern

    include Authorizable

    def readable?
      authorized?(:view_gpg_keys)
    end

    def editable?
      authorized?(:edit_gpg_keys)
    end

    def deletable?
      authorized?(:destroy_gpg_keys)
    end

    module ClassMethods
      def readable
        authorized(:view_gpg_keys)
      end
    end
  end
end

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
katello-3.17.3 app/models/katello/authorization/gpg_key.rb
katello-3.17.2 app/models/katello/authorization/gpg_key.rb
katello-3.17.1 app/models/katello/authorization/gpg_key.rb
katello-3.16.2 app/models/katello/authorization/gpg_key.rb
katello-3.17.0 app/models/katello/authorization/gpg_key.rb
katello-3.17.0.rc2.2 app/models/katello/authorization/gpg_key.rb
katello-3.17.0.rc2.1 app/models/katello/authorization/gpg_key.rb
katello-3.16.1.2 app/models/katello/authorization/gpg_key.rb
katello-3.16.1.1 app/models/katello/authorization/gpg_key.rb
katello-3.17.0.rc2 app/models/katello/authorization/gpg_key.rb
katello-3.16.1 app/models/katello/authorization/gpg_key.rb
katello-3.17.0.rc1 app/models/katello/authorization/gpg_key.rb
katello-3.16.0 app/models/katello/authorization/gpg_key.rb
katello-3.16.0.rc5.1 app/models/katello/authorization/gpg_key.rb
katello-3.16.0.rc5 app/models/katello/authorization/gpg_key.rb
katello-3.16.0.rc4.1 app/models/katello/authorization/gpg_key.rb
katello-3.15.3.1 app/models/katello/authorization/gpg_key.rb
katello-3.15.3 app/models/katello/authorization/gpg_key.rb
katello-3.16.0.rc4 app/models/katello/authorization/gpg_key.rb
katello-3.16.0.rc3.1 app/models/katello/authorization/gpg_key.rb