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