Sha256: 1410cb2e863ffb90dbf0b1d60a8c232a5db723597cc9d48028140bb4d9bd62b9

Contents?: true

Size: 439 Bytes

Versions: 45

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Abilities
    # Defines the abilities for a participatory process moderator. Intended to be
    # used with `cancancan`.
    # This ability will not apply to organization admins.
    class ParticipatoryProcessModeratorAbility < ParticipatoryProcessRoleAbility
      # Overrides ParticipatoryProcessRoleAbility role method
      def role
        :moderator
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
decidim-core-0.11.2 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.11.1 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.11.0.pre1 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.10.1 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.10.0 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.9.3 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.9.2 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.9.1 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.9.0 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.8.4 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.8.3 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.8.2 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.8.1 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.8.0 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.7.4 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.7.3 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.7.2 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.7.1 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.7.0 app/models/decidim/abilities/participatory_process_moderator_ability.rb
decidim-core-0.6.8 app/models/decidim/abilities/participatory_process_moderator_ability.rb