app/models/katello/authorization/content_view_environment.rb in katello-4.14.1 vs app/models/katello/authorization/content_view_environment.rb in katello-4.15.0.rc1
- old
+ new
@@ -3,7 +3,14 @@
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