Sha256: f080cf70fe6b8213d88b687572be0ac6aa5fc0688331adef20bde6d7ad4fbaee

Contents?: true

Size: 611 Bytes

Versions: 79

Compression:

Stored size: 611 Bytes

Contents

module Katello
  module Authorization::ContentCredential
    extend ActiveSupport::Concern

    include Authorizable

    def readable?
      authorized?(:view_content_credentials)
    end

    def editable?
      authorized?(:edit_content_credentials)
    end

    def deletable?
      authorized?(:destroy_content_credentials)
    end

    module ClassMethods
      def readable
        authorized(:view_content_credentials)
      end

      def editable
        authorized(:edit_content_credentials)
      end

      def deletable
        authorized(:destroy_content_credentials)
      end
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
katello-4.14.2 app/models/katello/authorization/content_credential.rb
katello-4.15.0 app/models/katello/authorization/content_credential.rb
katello-4.15.0.rc2 app/models/katello/authorization/content_credential.rb
katello-4.15.0.rc1 app/models/katello/authorization/content_credential.rb
katello-4.14.1 app/models/katello/authorization/content_credential.rb
katello-4.14.0 app/models/katello/authorization/content_credential.rb
katello-4.14.0.rc3 app/models/katello/authorization/content_credential.rb
katello-4.14.0.rc2 app/models/katello/authorization/content_credential.rb
katello-4.14.0.rc1.1 app/models/katello/authorization/content_credential.rb
katello-4.14.0.rc1 app/models/katello/authorization/content_credential.rb
katello-4.13.1 app/models/katello/authorization/content_credential.rb
katello-4.13.0 app/models/katello/authorization/content_credential.rb
katello-4.12.1 app/models/katello/authorization/content_credential.rb
katello-4.13.0.rc1 app/models/katello/authorization/content_credential.rb
katello-4.12.0 app/models/katello/authorization/content_credential.rb
katello-4.12.0.rc3 app/models/katello/authorization/content_credential.rb
katello-4.12.0.rc2 app/models/katello/authorization/content_credential.rb
katello-4.12.0.rc1 app/models/katello/authorization/content_credential.rb
katello-4.11.1 app/models/katello/authorization/content_credential.rb
katello-4.11.0 app/models/katello/authorization/content_credential.rb