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
|
||||
|
||||
def can_submit_en_construction?
|
||||
forked_with_changes?
|
||||
forked_with_changes? && owner?
|
||||
end
|
||||
|
||||
def submit_button_label
|
||||
|
|
|
@ -136,7 +136,6 @@ describe 'Invitations' do
|
|||
expect(page).to have_current_path(dossier_path(invite.dossier))
|
||||
end
|
||||
|
||||
it_behaves_like 'the user can edit the submitted demande'
|
||||
it_behaves_like 'the user can send messages to the instructeur'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue