allow to remove template permanently

pull/217/head
Pete Matsyburka 2 years ago
parent bbe3942056
commit ccc06fcc3d

@ -38,7 +38,11 @@ module Api
end
def destroy
@template.update!(archived_at: Time.current)
if params[:permanently] == 'true' && !Docuseal.multitenant?
@template.destroy!
else
@template.update!(archived_at: Time.current)
end
render json: @template.as_json(only: %i[id archived_at])
end

Loading…
Cancel
Save