Mask draft files for user
This commit is contained in:
parent
27dedb1f7b
commit
4ff31f5f81
2 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@ class Users::DossiersController < UsersController
|
|||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@dossiers = current_user.dossiers.order(updated_at: 'DESC').decorate
|
||||
@dossiers = current_user.dossiers.where("state NOT IN ('draft')").order(updated_at: 'DESC').decorate
|
||||
end
|
||||
def show
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue