allow to permanently delete submissions

This commit is contained in:
Pete Matsyburka
2024-06-18 16:45:07 +03:00
parent 781ccc701d
commit 8c092eba78
2 changed files with 8 additions and 4 deletions
+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)