Sha256: 35a3b0ea8f70923759e8bbfb9f8de37d2a4181fa3c614064df77917b8740eb31

Contents?: true

Size: 526 Bytes

Versions: 49

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    module Abilities
      # Defines the abilities for a collaborator user in the admin
      # section. Intended to be used with `cancancan`.
      class ParticipatoryProcessCollaboratorAbility < Decidim::Abilities::ParticipatoryProcessCollaboratorAbility
        def define_abilities
          super

          can [:read, :preview], ParticipatoryProcess do |process|
            can_manage_process?(process)
          end
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

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