allow to permanently delete submissions

This commit is contained in:
Pete Matsyburka committed 2024-06-18 16:54:15 +03:00
1 parent 781ccc701d
commit 8c092eba78
2 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ module Api
end
def destroy
if params[:permanently] == 'true' && !Docuseal.multitenant?
if params[:permanently] == 'true'
@template.destroy!
else
@template.update!(archived_at: Time.current)