From c575dbd33ad9e038ee38c4ab9fde9cbc1cd9c3ec Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Mon, 11 Nov 2013 17:40:51 +0800 Subject: [PATCH] Fixed Desktop Openness --- app/controllers/desktop_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/desktop_controller.rb b/app/controllers/desktop_controller.rb index bacfcdc97..299c2a215 100644 --- a/app/controllers/desktop_controller.rb +++ b/app/controllers/desktop_controller.rb @@ -344,7 +344,7 @@ class DesktopController< ApplicationController def check_desktop_open @site = Site.first - if @site.desktop_closed #Need to be change + if !@site.desktop_closed #Need to be change redirect_to '/admin/dashboards' end end