Sha256: ebae0e007895439aa3a526fbb7d5bb65ee673f92a285a4294855061055c74a12
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Decidim module Notify module Admin class Permissions < Decidim::DefaultPermissions def permissions return permission_action unless user return permission_action if permission_action.scope != :admin return permission_action unless [:config, :chapter].include? permission_action.subject case permission_action.action when :index, :create, :update, :destroy permission_action.allow! end permission_action end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems