Module: Katello::Authorization::HostCollection

Extended by:
ActiveSupport::Concern
Includes:
Authorizable
Included in:
HostCollection
Defined in:
app/models/katello/authorization/host_collection.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#creatable?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/katello/authorization/host_collection.rb', line 11

def creatable?
  authorized?(:create_host_collections)
end

#deletable?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/katello/authorization/host_collection.rb', line 19

def deletable?
  authorized?(:destroy_host_collections)
end

#editable?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/katello/authorization/host_collection.rb', line 15

def editable?
  authorized?(:edit_host_collections)
end

#readable?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/katello/authorization/host_collection.rb', line 7

def readable?
  authorized?(:view_host_collections)
end