From 9ba53806df1f82bc3b110a151585e1c26c4dfb64 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 30 Jun 2014 12:01:41 -0400 Subject: Apparently integers in postgress are signed 32-bit integers. I overflowed them. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index e9efb36..f4cb15c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -41,7 +41,7 @@ class UsersController < ApplicationController sign_in @user if @user.id == 1 # This is the first user, so give them all the power - @user.permissions = 0xFFFFFFFF + @user.permissions = 0x7FFFFFFF @user.save end format.html { redirect_to root_path, notice: 'User was successfully created.' } -- cgit v1.2.3