Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created February 18, 2014 19:35
Show Gist options
  • Save ehelms/9078269 to your computer and use it in GitHub Desktop.
Save ehelms/9078269 to your computer and use it in GitHub Desktop.
module Katello
module Authorization
module PuppetModule
extend ActiveSupport::Concern
module ClassMethods
def readable?(environment, repo = nil)
if repo
repo.environment.contents_readable? && repo.product.readable?
else
environment.contents_readable?
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment