Sha256: 617decc139a644e8c183a060df3e836f8cc68f3c44aabfc1de6e20ed17ee0c31
Contents?: true
Size: 488 Bytes
Versions: 10
Compression:
Stored size: 488 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 CollaboratorUser include CanCan::Ability def initialize(user, _context) return unless user && user.role?(:collaborator) can :manage, :admin_dashboard can :preview, ParticipatoryProcess end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems