remove :administrateur_graphql
This commit is contained in:
parent
1be07c1ef5
commit
6643b598c3
4 changed files with 2 additions and 7 deletions
|
@ -16,7 +16,7 @@ module Types
|
|||
end
|
||||
end
|
||||
|
||||
if administrateur && Flipper.enabled?(:administrateur_graphql, administrateur.user)
|
||||
if administrateur
|
||||
context[:authorized][demarche.id] = true
|
||||
true
|
||||
end
|
||||
|
|
|
@ -25,7 +25,6 @@ end
|
|||
|
||||
# A list of features to be deployed on first push
|
||||
features = [
|
||||
:administrateur_graphql,
|
||||
:administrateur_web_hook,
|
||||
:insee_api_v3,
|
||||
:instructeur_bypass_email_login_token,
|
||||
|
|
|
@ -210,7 +210,7 @@ Rails.application.routes.draw do
|
|||
# API
|
||||
#
|
||||
|
||||
authenticated :user, lambda { |user| user.administrateur_id && Flipper.enabled?(:administrateur_graphql, user) } do
|
||||
authenticated :user, lambda { |user| user.administrateur_id } do
|
||||
mount GraphqlPlayground::Rails::Engine, at: "/graphql", graphql_path: "/api/v2/graphql"
|
||||
end
|
||||
|
||||
|
|
|
@ -106,10 +106,6 @@ describe API::V2::GraphqlController do
|
|||
|
||||
subject { post :execute, params: { query: query } }
|
||||
|
||||
before do
|
||||
Flipper.enable(:administrateur_graphql, admin.user)
|
||||
end
|
||||
|
||||
context "when authenticated" do
|
||||
let(:authorization_header) { ActionController::HttpAuthentication::Token.encode_credentials(token) }
|
||||
|
||||
|
|
Loading…
Reference in a new issue