graphql(playground): fix acl

This commit is contained in:
Paul Chavard 2024-09-13 14:27:59 +02:00
parent 52610010b7
commit f00ba04fb9
No known key found for this signature in database
2 changed files with 70 additions and 33 deletions

View file

@ -12,7 +12,7 @@ class API::V2::BaseController < ApplicationController
before_action :authenticate_from_token
before_action :ensure_authorized_network, if: -> { @api_token.present? }
before_action :ensure_token_is_not_expired, if: -> { @api_token.present? }
before_action :allow_only_persisted_queries, if: -> { @api_token.blank? }
before_action :allow_only_persisted_queries, if: -> { @api_token.blank? && current_administrateur.blank? }
before_action do
Current.browser = 'api'