Sha256: cb5a14e8fe776e6f71f7d677b44e45da50d82048a96ee210c0be888678259530
Contents?: true
Size: 1013 Bytes
Versions: 90
Compression:
Stored size: 1013 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 can_import_content? authorized?(:import_content) end def can_export_content? authorized?(:export_content) 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
90 entries across 90 versions & 1 rubygems