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 /spec/models/event_spec.rb | |
parent | 16ab0050f6f1544eb717da34975f12861df37c9c (diff) |
Allow admins/auditors to read private personal snippets
Diffstat (limited to 'spec/models/event_spec.rb')
-rw-r--r-- | spec/models/event_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index a64720f1876..ce4f8ee4705 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -399,10 +399,7 @@ describe Event do expect(event.visible_to_user?(nil)).to be_falsy expect(event.visible_to_user?(non_member)).to be_falsy expect(event.visible_to_user?(author)).to be_truthy - - # It is very unexpected that a private personal snippet is not visible - # to an instance administrator. This should be fixed in the future. - expect(event.visible_to_user?(admin)).to be_falsy + expect(event.visible_to_user?(admin)).to be_truthy end end end |