Sha256: 2eb26d40539f42898f753fc8f867ed3cf81d41674cd3e50d0f835bce548474b0
Contents?: true
Size: 469 Bytes
Versions: 85
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module Decidim module Accountability class Permissions < Decidim::DefaultPermissions def permissions return permission_action unless user # Delegate the admin permission checks to the admin permissions class return Decidim::Accountability::Admin::Permissions.new(user, permission_action, context).permissions if permission_action.scope == :admin permission_action end end end end
Version data entries
85 entries across 85 versions & 1 rubygems