Module: Katello::Authorization::HostCollection::ClassMethods

Defined in:
app/models/katello/authorization/host_collection.rb

Instance Method Summary collapse

Instance Method Details

#creatableObject



32
33
34
# File 'app/models/katello/authorization/host_collection.rb', line 32

def creatable
  authorized(:create_host_collections)
end

#deletableObject



40
41
42
# File 'app/models/katello/authorization/host_collection.rb', line 40

def deletable
  authorized(:destroy_host_collections)
end

#editableObject



36
37
38
# File 'app/models/katello/authorization/host_collection.rb', line 36

def editable
  authorized(:edit_host_collections)
end

#readableObject



24
25
26
# File 'app/models/katello/authorization/host_collection.rb', line 24

def readable
  authorized(:view_host_collections)
end

#readable?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/models/katello/authorization/host_collection.rb', line 28

def readable?
  User.current.can?(:view_host_collections)
end