Description:
does not record login time in analysis mode
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r317:df35763dc517 - - 1 file changed: 3 inserted, 1 deleted
@@ -355,13 +355,15 | |||||
|
355 | user = User.find(session[:user_id]) |
|
355 | user = User.find(session[:user_id]) |
|
356 | if (Configuration.indv_contest_mode? and |
|
356 | if (Configuration.indv_contest_mode? and |
|
357 | Configuration['contest.confirm_indv_contest_start'] and |
|
357 | Configuration['contest.confirm_indv_contest_start'] and |
|
358 | !user.contest_started?) |
|
358 | !user.contest_started?) |
|
359 | redirect_to :action => 'confirm_contest_start' and return |
|
359 | redirect_to :action => 'confirm_contest_start' and return |
|
360 | end |
|
360 | end |
|
361 | - user.update_start_time |
|
361 | + if not Configuration.analysis_mode? |
|
|
362 | + user.update_start_time | ||
|
|
363 | + end | ||
|
362 | end |
|
364 | end |
|
363 |
|
365 | ||
|
364 | def reject_announcement_refresh_when_logged_out |
|
366 | def reject_announcement_refresh_when_logged_out |
|
365 | if not session[:user_id] |
|
367 | if not session[:user_id] |
|
366 | render :text => 'Access forbidden', :status => 403 |
|
368 | render :text => 'Access forbidden', :status => 403 |
|
367 | end |
|
369 | end |
You need to be logged in to leave comments.
Login now