diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-09-02 13:58:47 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-09-02 13:58:47 +0200 |
commit | baf2cd72b344823b91ef39d0344375e9dbb84208 (patch) | |
tree | 4e8e6de0b2c9fe53a54c4096050d3a794edbef84 /app/models/user.rb | |
parent | e6aa1c5266d10fa13a481492f4a41eba3b5eb0c3 (diff) | |
parent | faac71215789cb8224c14be0a4fcbe252a99fa4f (diff) | |
download | gitlab-ce-baf2cd72b344823b91ef39d0344375e9dbb84208.tar.gz |
Merge branch 'master' into repository-page-ui-issues
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 8f5958333d7..6996740eebd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -433,7 +433,7 @@ class User < ActiveRecord::Base # # This logic is duplicated from `Ability#project_abilities` into a SQL form. def projects_where_can_admin_issues - authorized_projects(Gitlab::Access::REPORTER).non_archived.where.not(issues_enabled: false) + authorized_projects(Gitlab::Access::REPORTER).non_archived.with_issues_enabled end def is_admin? |