Class: Decidim::Assemblies::Abilities::Admin::AdminAbility

Inherits:
Decidim::Abilities::AdminAbility
  • Object
show all
Defined in:
app/models/decidim/assemblies/abilities/admin/admin_ability.rb

Overview

Defines the abilities for an admin user. Intended to be used with ‘cancancan`.

Instance Method Summary collapse

Instance Method Details

#define_abilitiesObject



9
10
11
12
13
14
# File 'app/models/decidim/assemblies/abilities/admin/admin_ability.rb', line 9

def define_abilities
  super

  can :manage, Assembly
  can :manage, Decidim::AssemblyUserRole
end