fix: an invite can not submit a fork (UI side)
This commit is contained in:
parent
6e8e5a82b1
commit
49fbc9324f
2 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,7 @@ class Dossiers::EditFooterComponent < ApplicationComponent
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_submit_en_construction?
|
def can_submit_en_construction?
|
||||||
forked_with_changes?
|
forked_with_changes? && owner?
|
||||||
end
|
end
|
||||||
|
|
||||||
def submit_button_label
|
def submit_button_label
|
||||||
|
|
|
@ -136,7 +136,6 @@ describe 'Invitations' do
|
||||||
expect(page).to have_current_path(dossier_path(invite.dossier))
|
expect(page).to have_current_path(dossier_path(invite.dossier))
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'the user can edit the submitted demande'
|
|
||||||
it_behaves_like 'the user can send messages to the instructeur'
|
it_behaves_like 'the user can send messages to the instructeur'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue