diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-07 06:06:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-07 06:06:12 +0000 |
commit | 2a87ae2e368ec6fbb1e75b89bc092ba2fd7eb913 (patch) | |
tree | 4d6b995e3292562627ddeeacbc5b5eba0ce64032 /app/policies/personal_snippet_policy.rb | |
parent | eb0d9e20c5a81b0a556308ae3fc8015fcc3c9621 (diff) | |
download | gitlab-ce-2a87ae2e368ec6fbb1e75b89bc092ba2fd7eb913.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/personal_snippet_policy.rb')
-rw-r--r-- | app/policies/personal_snippet_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/personal_snippet_policy.rb b/app/policies/personal_snippet_policy.rb index 67c66e42d79..91a8f3a7133 100644 --- a/app/policies/personal_snippet_policy.rb +++ b/app/policies/personal_snippet_policy.rb @@ -10,7 +10,7 @@ class PersonalSnippetPolicy < BasePolicy enable :create_note end - rule { is_author }.policy do + rule { is_author | admin }.policy do enable :read_personal_snippet enable :update_personal_snippet enable :destroy_personal_snippet |