diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-11 18:57:18 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-11 20:50:26 -0300 |
commit | bee28e1785ad7844bd518c19106beee7d8a4c560 (patch) | |
tree | 8f5d96c3c79c6b560d97952ed6059bdc74080669 /app/controllers/groups | |
parent | 93a10f17e0c84074580eaf1b101af2a0fffd19ed (diff) | |
download | gitlab-ce-bee28e1785ad7844bd518c19106beee7d8a4c560.tar.gz |
Requires user to be signed in when changing notification settings
Diffstat (limited to 'app/controllers/groups')
-rw-r--r-- | app/controllers/groups/notification_settings_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/groups/notification_settings_controller.rb b/app/controllers/groups/notification_settings_controller.rb index 1b46f26a378..de13b16ccf2 100644 --- a/app/controllers/groups/notification_settings_controller.rb +++ b/app/controllers/groups/notification_settings_controller.rb @@ -1,4 +1,6 @@ class Groups::NotificationSettingsController < Groups::ApplicationController + before_action :authenticate_user! + def update notification_setting = current_user.notification_settings_for(group) saved = notification_setting.update_attributes(notification_setting_params) |