Sha256: 5044d75718949b4b5e30904b5c87f8feecf7379b382e6436231274374a055475
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true module Decidim module Abilities # Defines the base abilities for any user. Guest users will use these too. # Intended to be used with `cancancan`. class Everyone include CanCan::Ability def initialize(user, _context) can :read, ParticipatoryProcessGroup can :read, ParticipatoryProcess, &:published? can :read, :public_pages can :manage, :locales can :read, Feature, &:published? can :manage, User do |other| other == user end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems