Module: Katello::Authorization::LifecycleEnvironment

Extended by:
ActiveSupport::Concern
Includes:
Authorizable
Included in:
KTEnvironment
Defined in:
app/models/katello/authorization/lifecycle_environment.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/lifecycle_environment.rb', line 11

def creatable?
  self.class.creatable?
end

#deletable?Boolean

Returns:

  • (Boolean)


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

def deletable?
  authorized?(:destroy_lifecycle_environments)
end

#editable?Boolean

Returns:

  • (Boolean)


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

def editable?
  authorized?(:edit_lifecycle_environments)
end

#promotable_or_removable?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/models/katello/authorization/lifecycle_environment.rb', line 23

def promotable_or_removable?
  authorized?(:promote_or_remove_content_views_to_environments)
end

#readable?Boolean

Returns:

  • (Boolean)


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

def readable?
  authorized?(:view_lifecycle_environments)
end