diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 10:57:02 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 10:57:02 +0300 |
| commit | bdbadebe3e6e25180d8c1465dde4573fa0ecc389 (patch) | |
| tree | 64530175e13127cbc68cc9d6c24adfb6c7e56912 /app/controllers/profiles | |
| parent | 1aa48174db63871bb10b53e49c86222a4d9b7c6d (diff) | |
| download | gitlab-ce-bdbadebe3e6e25180d8c1465dde4573fa0ecc389.tar.gz | |
Fix adminarea and emails for new membership logic
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/profiles')
| -rw-r--r-- | app/controllers/profiles/notifications_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/profiles/notifications_controller.rb b/app/controllers/profiles/notifications_controller.rb index efed4a19ee3..638d1f9789b 100644 --- a/app/controllers/profiles/notifications_controller.rb +++ b/app/controllers/profiles/notifications_controller.rb @@ -18,9 +18,9 @@ class Profiles::NotificationsController < ApplicationController users_group.notification_level = params[:notification_level] users_group.save else - users_project = current_user.project_members.find(params[:notification_id]) - users_project.notification_level = params[:notification_level] - users_project.save + project_member = current_user.project_members.find(params[:notification_id]) + project_member.notification_level = params[:notification_level] + project_member.save end end end |
