Created
February 18, 2014 19:35
-
-
Save ehelms/9078269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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