summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorDaniel Gerhardt <code@dgerhardt.net>2015-07-19 20:58:59 +0200
committerDaniel Gerhardt <code@dgerhardt.net>2015-07-19 21:33:21 +0200
commit69417d36b2fa4dfbe2205c4df1428eb17ebd061e (patch)
tree4cbfd405bf327a2ba235ea3dfdf9909ef93cba54 /app/models/ability.rb
parente8aaf5680355b2a71ab85439f653a70f4b487e0b (diff)
downloadgitlab-ce-69417d36b2fa4dfbe2205c4df1428eb17ebd061e.tar.gz
Fix label read access for unauthenticated users
The label page was added to navigation for unauthorized users because the previously used milestone read permission was still checked. This has been fixed and read access to labels is now granted (again) for public projects. This regression has been introduced in 07efb17e10fe26a01b60d8441868f9fbda0768f2 (7.12). See also 9bcd36396b9b71467f66dd4ed79ab709bb5d027a. Refs !836, !842.
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index d3631d49ec6..7dab50d47d4 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -35,6 +35,7 @@ class Ability
:read_project,
:read_wiki,
:read_issue,
+ :read_label,
:read_milestone,
:read_project_snippet,
:read_project_member,