remove ununcessary instance variable for current admin
This commit is contained in:
parent
e757eefd37
commit
db244c821b
2 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
= turbo_stream.update 'check_path' do
|
||||
- if @path_available == false && @administrateur.owns?(@other_procedure)
|
||||
- if @path_available == false && current_administrateur.owns?(@other_procedure)
|
||||
%p.fr-error-text= t('.path_not_available.owner')
|
||||
- elsif @path_available == false
|
||||
%p.fr-error-text= t('.path_not_available.not_owner')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue