John fix issue#274 (#275)

* <fixed privacy policy errors>

* <Fixed code style>

* <Robustness changes>

* <redirect to 404 page if terms are disabled>

* <patched validation of accepted terms>

* <relaunching scrutinizer>
This commit is contained in:
John Ma
2018-10-02 10:23:09 -04:00
committed by Jesus Federico
parent 423ec6c828
commit dcd24d61be
4 changed files with 14 additions and 7 deletions

View File

@ -180,6 +180,8 @@ class RoomsController < ApplicationController
end
def validate_accepted_terms
redirect_to terms_path unless current_user.accepted_terms
if current_user
redirect_to terms_path unless current_user.accepted_terms
end
end
end