From: Simon Brandhof Date: Mon, 15 Aug 2011 11:08:47 +0000 (+0200) Subject: Fix error log in timemachine page X-Git-Tag: 2.11^2~158 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=911ba2f2c7aeabc2dc7c840f3f797dd6f1fb4d64;p=sonarqube.git Fix error log in timemachine page --- 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)