summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-30 11:13:38 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-30 11:13:38 +0300
commit6e5b1686f4431386aab23cea64564718b62b3cb0 (patch)
treef1c3abf93111dce51657cb9fcd7c0edc19e1d47a /app/controllers/dashboard_controller.rb
parente14718fb2e7202e1929d03ceea43a1c487d74f3d (diff)
downloadgitlab-ce-6e5b1686f4431386aab23cea64564718b62b3cb0.tar.gz
TeamManagement: Dont update permissions if it was not changed
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r--app/controllers/dashboard_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index 2f418d40e78..b74c22b1547 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -68,7 +68,7 @@ class DashboardController < ApplicationController
end
def event_filter
- filters = cookies['event_filter'].split(',') if cookies['event_filter']
+ filters = cookies['event_filter'].split(',') if cookies['event_filter'].present?
@event_filter ||= EventFilter.new(filters)
end
end