Module: Katello::Authorization::AlternateContentSource

Extended by:
ActiveSupport::Concern
Includes:
Authorizable
Included in:
Katello::AlternateContentSource
Defined in:
app/models/katello/authorization/alternate_content_source.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#deletable?Boolean

Returns:

  • (Boolean)


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

def deletable?
  authorized?(:destroy_alternate_content_sources)
end

#editable?Boolean

Returns:

  • (Boolean)


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

def editable?
  authorized?(:edit_alternate_content_sources)
end

#readable?Boolean

Returns:

  • (Boolean)


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

def readable?
  authorized?(:view_alternate_content_sources)
end