Sha256: fc29d69212dc1c39d9a7830a73777a687bfe195d3ab27465926151971ba35f23

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

module Katello
  module Authorization::ContentViewEnvironment
    extend ActiveSupport::Concern

    def readable?
      self.content_view.readable? && self.environment.readable?
    end

    module ClassMethods
      def readable
        where(:content_view_id => ::Katello::ContentView.readable,
              :environment_id => ::Katello::KTEnvironment.readable)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.15.0 app/models/katello/authorization/content_view_environment.rb
katello-4.15.0.rc2 app/models/katello/authorization/content_view_environment.rb
katello-4.15.0.rc1 app/models/katello/authorization/content_view_environment.rb