Skip to content

Commit

Permalink
🔥 Retire permission inutiles car les questions ne sont accessibles qu…
Browse files Browse the repository at this point in the history
…'aux superadmin
  • Loading branch information
marouria committed Nov 1, 2024
1 parent 02957c2 commit ae956a7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/admin/questions_clic_dans_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
end
end

action_item :importer_question, only: :index, if: -> { can? :manage, Question } do
action_item :importer_question, only: :index do
link_to 'Importer question clic dans image',
admin_import_xls_path(type: 'QuestionClicDansImage')
end
Expand Down
2 changes: 1 addition & 1 deletion app/admin/questions_glisser_deposer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

form partial: 'form'

action_item :importer_question, only: :index, if: -> { can? :manage, Question } do
action_item :importer_question, only: :index do
link_to 'Importer question glisser déposer',
admin_import_xls_path(type: 'QuestionGlisserDeposer')
end
Expand Down
2 changes: 1 addition & 1 deletion app/admin/questions_qcm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

form partial: 'form'

action_item :importer_question, only: :index, if: -> { can? :manage, Question } do
action_item :importer_question, only: :index do
link_to 'Importer question qcm',
admin_import_xls_path(type: 'QuestionQcm')
end
Expand Down
2 changes: 1 addition & 1 deletion app/admin/questions_saisie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
filter :libelle
filter :nom_technique

action_item :importer_question, only: :index, if: -> { can? :manage, Question } do
action_item :importer_question, only: :index do
link_to 'Importer question saisie',
admin_import_xls_path(type: 'QuestionSaisie')
end
Expand Down
2 changes: 1 addition & 1 deletion app/admin/questions_sous_consigne.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
filter :libelle
filter :nom_technique

action_item :importer_question, only: :index, if: -> { can? :manage, Question } do
action_item :importer_question, only: :index do
link_to 'Importer question sous consigne',
admin_import_xls_path(type: 'QuestionSousConsigne')
end
Expand Down

0 comments on commit ae956a7

Please sign in to comment.