Sha256: b2d606af7bb264e4d9c599544f41af57b2387a4ea319b3ef9a730f5a894930b2

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    module Abilities
      module Admin
        # Defines the abilities for an admin user. Intended to be used with `cancancan`.
        class AdminAbility < Decidim::Abilities::AdminAbility
          def define_abilities
            super

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-assemblies-0.11.2 app/models/decidim/assemblies/abilities/admin/admin_ability.rb
decidim-assemblies-0.11.1 app/models/decidim/assemblies/abilities/admin/admin_ability.rb
decidim-assemblies-0.11.0.pre1 app/models/decidim/assemblies/abilities/admin/admin_ability.rb