Commit f9488901 authored by Toon Claes's avatar Toon Claes

Auditor user should also have private access

The permitted visibility levels for an auditor user should also include private,
because it has read-only access to every project/group on the GitLab instance.
parent bd819aa9
......@@ -28,7 +28,7 @@ module Gitlab
def levels_for_user(user = nil)
return [PUBLIC] unless user
if user.admin?
if user.admin_or_auditor?
[PRIVATE, INTERNAL, PUBLIC]
elsif user.external?
[PUBLIC]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment