diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-04-29 18:06:22 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-05-17 21:53:03 -0500 |
commit | 07ff874f572a947d7730787492a604dd3f44d496 (patch) | |
tree | e2182144eaeadbc54d408df9168f3ef220d16f27 /app/controllers/projects_controller.rb | |
parent | 98d88e8188f551533390ca9dcb1247e5af6807cf (diff) | |
download | gitlab-ce-07ff874f572a947d7730787492a604dd3f44d496.tar.gz |
Let users set notification levels in projects which they are not members
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index f4ec60ad2c7..55632308b4f 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -102,9 +102,7 @@ class ProjectsController < Projects::ApplicationController respond_to do |format| format.html do if current_user - @membership = @project.team.find_member(current_user.id) - - if @membership + if can?(current_user, :read_project, @project) @notification_setting = current_user.notification_settings_for(@project) end end |