intiialize new users to level 20

This commit is contained in:
albert
2013-02-20 02:12:25 -05:00
parent 5f6cb744a3
commit f864272763
2 changed files with 11 additions and 1 deletions

View File

@@ -235,6 +235,8 @@ class User < ActiveRecord::Base
if User.count == 0
self.level = Levels::ADMIN
else
self.level = Levels::MEMBER
end
end