fix: an invite can not submit a fork (UI side)

This commit is contained in:
simon lehericey 2024-12-17 14:36:26 +01:00
parent 6e8e5a82b1
commit 49fbc9324f
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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