Sha256: 8f36c0ad73e8e96c6dfd81c95f8f38d15956eb1370ca07f53f23f29ac547d66f
Contents?: true
Size: 542 Bytes
Versions: 6
Compression:
Stored size: 542 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 EveryoneAbility include CanCan::Ability def initialize(user, _context) can :read, :public_pages can :manage, :locales can :read, Feature, &:published? can :search, Scope can :pick, Scope can :manage, User do |other| other == user end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems