Merge pull request #4493 from betagouv/feature_flip_routage_for_admin
Renommage de l'option routage afin de l'activer sur les pages manager/admins
This commit is contained in:
commit
9e1ede2a51
2 changed files with 3 additions and 3 deletions
|
@ -30,14 +30,14 @@
|
|||
.procedure-list-element
|
||||
Administrateurs
|
||||
|
||||
- if !feature_enabled?(:routage)
|
||||
- if !feature_enabled?(:administrateur_routage)
|
||||
%a#onglet-instructeurs{ href: url_for(admin_procedure_assigns_path(@procedure)) }
|
||||
.procedure-list-element{ class: ('active' if active == 'Instructeurs') }
|
||||
Instructeurs
|
||||
- if @procedure.missing_steps.include?(:instructeurs)
|
||||
%p.missing-steps (à compléter)
|
||||
|
||||
- if feature_enabled?(:routage)
|
||||
- if feature_enabled?(:administrateur_routage)
|
||||
%a#onglet-instructeurs{ href: url_for(procedure_groupe_instructeurs_path(@procedure)) }
|
||||
.procedure-list-element
|
||||
Groupe d'instructeurs
|
||||
|
|
|
@ -7,7 +7,7 @@ feature 'The routing' do
|
|||
let(:scientifique_user) { create(:user, password: password) }
|
||||
let(:litteraire_user) { create(:user, password: password) }
|
||||
|
||||
before { Flipper.enable_actor(:routage, administrateur.user) }
|
||||
before { Flipper.enable_actor(:administrateur_routage, administrateur.user) }
|
||||
|
||||
scenario 'works' do
|
||||
login_as administrateur.user, scope: :user
|
||||
|
|
Loading…
Reference in a new issue