diff options
author | Patrick Bajao <ebajao@gitlab.com> | 2019-01-24 15:44:46 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-01-24 15:44:46 +0300 |
commit | 40900669b3bde03468d709c479794a758b431d8c (patch) | |
tree | 807a6567e50b691796b84cff62515dd25172ea52 /app/policies/personal_snippet_policy.rb | |
parent | 16ab0050f6f1544eb717da34975f12861df37c9c (diff) |
Allow admins/auditors to read private personal snippets
Diffstat (limited to 'app/policies/personal_snippet_policy.rb')
-rw-r--r-- | app/policies/personal_snippet_policy.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/policies/personal_snippet_policy.rb b/app/policies/personal_snippet_policy.rb index 777f933cdcd..040b5a73415 100644 --- a/app/policies/personal_snippet_policy.rb +++ b/app/policies/personal_snippet_policy.rb @@ -29,4 +29,6 @@ class PersonalSnippetPolicy < BasePolicy rule { anonymous }.prevent :comment_personal_snippet rule { can?(:comment_personal_snippet) }.enable :award_emoji + + rule { full_private_access }.enable :read_personal_snippet end |