Remove unnecessary test for 0
authorSimon Poole <simon@poole.ch>
Thu, 31 Jan 2019 08:44:31 +0000 (09:44 +0100)
committerSimon Poole <simon@poole.ch>
Mon, 13 May 2019 14:54:29 +0000 (16:54 +0200)
app/controllers/users_controller.rb

index 925d8752f77b8e35bf4b556f85c2db07ca819462..4b56dc03315bdbada9e7093d444ee569f01e2bec 100644 (file)
@@ -36,7 +36,7 @@ class UsersController < ApplicationController
   def save
     @title = t "users.new.title"
 
-    if params[:decline] || !params[:read_tou] || params[:read_tou] == "0"
+    if params[:decline] || !params[:read_tou]
       if current_user
         current_user.terms_seen = true