A gestionnaire can only see procédures publiées

This commit is contained in:
gregoirenovel 2017-07-18 15:26:33 +02:00 committed by Mathieu Magnin
parent 55a4f1288f
commit 7ff7710803
20 changed files with 31 additions and 31 deletions

View file

@ -7,7 +7,7 @@ class Gestionnaire < ActiveRecord::Base
has_one :preference_smart_listing_page, dependent: :destroy
has_many :assign_to, dependent: :destroy
has_many :procedures, through: :assign_to
has_many :procedures, -> { publiees_ou_archivees }, through: :assign_to
has_many :dossiers, -> { state_not_brouillon }, through: :procedures
has_many :followed_dossiers, through: :follows, source: :dossier
has_many :follows