Sha256: 2fd5d537bb2c58352fd82e1b8796724d7febd73e3762a8e983c9cca16ce8eaad
Contents?: true
Size: 555 Bytes
Versions: 14
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true module Decidim module Surveys module Admin class Permissions < Decidim::DefaultPermissions def permissions return permission_action unless user return permission_action if permission_action.scope != :admin return permission_action if permission_action.subject != :survey case permission_action.action when :export_answers, :update permission_action.allow! end permission_action end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems