Module: Katello::Authorization::HostCollection::ClassMethods
- Defined in:
- app/models/katello/authorization/host_collection.rb
Instance Method Summary collapse
Instance Method Details
#creatable ⇒ Object
32 33 34 |
# File 'app/models/katello/authorization/host_collection.rb', line 32 def creatable (:create_host_collections) end |
#deletable ⇒ Object
40 41 42 |
# File 'app/models/katello/authorization/host_collection.rb', line 40 def deletable (:destroy_host_collections) end |
#editable ⇒ Object
36 37 38 |
# File 'app/models/katello/authorization/host_collection.rb', line 36 def editable (:edit_host_collections) end |
#readable ⇒ Object
24 25 26 |
# File 'app/models/katello/authorization/host_collection.rb', line 24 def readable (:view_host_collections) end |
#readable? ⇒ Boolean
28 29 30 |
# File 'app/models/katello/authorization/host_collection.rb', line 28 def readable? User.current.can?(:view_host_collections) end |