Sha256: b8c606a9aff13a5df24cd3f89812cf745956aadd51c44f8c7b2a0f0802a9482c
Contents?: true
Size: 869 Bytes
Versions: 138
Compression:
Stored size: 869 Bytes
Contents
module Katello module Authorization::Organization extend ActiveSupport::Concern include Authorizable def editable? authorized?(:edit_organizations) end def manifest_importable? authorized?(:import_manifest) end def readable_promotion_paths permissible_promotion_paths(KTEnvironment.readable) end def promotable_promotion_paths permissible_promotion_paths(KTEnvironment.promotable) end def permissible_promotion_paths(permissible_environments) promotion_paths.select do |promotion_path| # if at least one environment in the path is permissible # the path is deemed permissible. (promotion_path - permissible_environments).size != promotion_path.size end end def subscriptions_readable? User.current.can?(:view_subscriptions) end end end
Version data entries
138 entries across 138 versions & 1 rubygems