From 911ba2f2c7aeabc2dc7c840f3f797dd6f1fb4d64 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 15 Aug 2011 13:08:47 +0200 Subject: [PATCH] Fix error log in timemachine page --- .../webapp/WEB-INF/app/controllers/timemachine_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/timemachine_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/timemachine_controller.rb index 47d0d223998..30fae8bef84 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/timemachine_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/timemachine_controller.rb @@ -29,6 +29,7 @@ class TimemachineController < ApplicationController def index @project = Project.by_key(params[:id]) + return redirect_to home_url unless @project @snapshot=@project.last_snapshot return access_denied unless is_user?(@snapshot) -- 2.39.5