diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-01-20 11:28:40 +0100 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-01-25 10:10:05 +0100 |
commit | 0c350b79395d6712c7c4fee649cdbd77aa4052cc (patch) | |
tree | 2899a67fbe65c29b84c35ab417dbec96913095c4 /app/models/ability.rb | |
parent | bf708e55c2e6035b64861a1cda8bfe3d3b4a2105 (diff) | |
download | gitlab-ce-0c350b79395d6712c7c4fee649cdbd77aa4052cc.tar.gz |
address comments
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 5bad5c17747..ad6c588202e 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -29,7 +29,7 @@ class Ability when Snippet::INTERNAL, Snippet::PUBLIC users when Snippet::PRIVATE - users.select { |user| snippet.author == user } + users.include?(snippet.author) ? [snippet.author] : [] end end |