Sha256: a20e2121aaa2ddfebd1335deebb4401e2e1ce9bd52801f2cb760d247a1188979
Contents?: true
Size: 387 Bytes
Versions: 10
Compression:
Stored size: 387 Bytes
Contents
module Katello module Authorization::Subscription extend ActiveSupport::Concern include Authorizable def readable? authorized?(:view_subscriptions) end module ClassMethods def readable return all if User.current.admin? authorized(:view_subscriptions).where(organization_id: User.current.organization_ids) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems