From 574b11fc14012a3313edccd5c290ba9f16c1f334 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 6 Jul 2015 18:49:57 -0700 Subject: [PATCH] comment on max bit flag for user prefs --- app/models/user.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 0b02ade68..7cc71a827 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -16,6 +16,9 @@ class User < ActiveRecord::Base ADMIN = 50 end + + # bit_prefs is 64 bits signed so theoretical maximum + # is 0x8000 0000 0000 0000 BOOLEAN_ATTRIBUTES = { :is_banned => 0x0001, :has_mail => 0x0002,