aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-08-15 13:08:47 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-08-15 13:08:47 +0200
commit911ba2f2c7aeabc2dc7c840f3f797dd6f1fb4d64 (patch)
tree339e016db29d3ba1ec24b983188083a878b846ee
parent4e7602dda0ff0d5a4bfcb7aa3d151dda699e99f9 (diff)
downloadsonarqube-911ba2f2c7aeabc2dc7c840f3f797dd6f1fb4d64.tar.gz
sonarqube-911ba2f2c7aeabc2dc7c840f3f797dd6f1fb4d64.zip
Fix error log in timemachine page
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/timemachine_controller.rb1
1 files changed, 1 insertions, 0 deletions
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)