summaryrefslogtreecommitdiff
path: root/lib/api/snippets.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/snippets.rb')
-rw-r--r--lib/api/snippets.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/snippets.rb b/lib/api/snippets.rb
index 35ece56c65c..7107b3d669c 100644
--- a/lib/api/snippets.rb
+++ b/lib/api/snippets.rb
@@ -122,6 +122,7 @@ module API
return not_found!('Snippet') unless snippet
authorize! :destroy_personal_snippet, snippet
+ check_unmodified_since(snippet.updated_at)
status 204
snippet.destroy