Sha256: b1854d44c9528bf58c4227e8d9ea21d2f71ad15ef9809c017ed105e93f3ffed4
Contents?: true
Size: 682 Bytes
Versions: 118
Compression:
Stored size: 682 Bytes
Contents
module Katello module Authorization::SyncPlan extend ActiveSupport::Concern include Authorizable def readable? authorized?(:view_sync_plans) end def editable? authorized?(:edit_sync_plans) end def deletable? authorized?(:destroy_sync_plans) end def syncable? products.all? { |p| p.syncable? } end module ClassMethods def readable authorized(:view_sync_plans) end def editable authorized(:edit_sync_plans) end def deletable authorized(:destroy_sync_plans) end def syncable authorized(:sync_sync_plans) end end end end
Version data entries
118 entries across 118 versions & 1 rubygems