diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-26 21:06:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-26 21:06:33 +0300 |
commit | 581c10e344d85729e77fce78513819d159289dc5 (patch) | |
tree | ea84e89fddcafe5a8abdc8a9a5f7f210b6644e77 /lib/api | |
parent | 68d3f33d5194c446812d09f079749ddf56f95378 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/snippets.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/snippets.rb b/lib/api/snippets.rb index f759b3607a8..fd5422f2e2c 100644 --- a/lib/api/snippets.rb +++ b/lib/api/snippets.rb @@ -131,7 +131,7 @@ module API snippet = snippets_for_current_user.find_by_id(params.delete(:id)) break not_found!('Snippet') unless snippet - authorize! :destroy_personal_snippet, snippet + authorize! :admin_personal_snippet, snippet destroy_conditionally!(snippet) end |