Skip to content

Commit

Permalink
ne donne pas le droit en lecture sur les évaluations aux comptes sans…
Browse files Browse the repository at this point in the history
… structure
  • Loading branch information
etienneCharignon committed Aug 31, 2023
1 parent 6467d5a commit 02195ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ability_utilisateur.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def droits_generiques(compte)
def droit_evaluation(compte)
cannot %i[create], Evaluation
can %i[read destroy], Evaluation, campagne: { compte_id: compte.id }
return unless compte.validation_acceptee?
return unless compte.validation_acceptee? && compte.structure_id.present?

can %i[read mise_en_action supprimer_responsable_suivi
ajouter_responsable_suivi renseigner_qualification],
Expand Down

0 comments on commit 02195ec

Please sign in to comment.