修正后台注册用户问题

This commit is contained in:
nwb 2014-05-14 17:11:22 +08:00
parent 6f0e621f3c
commit b733f5c2b9
1 changed files with 8 additions and 0 deletions

View File

@ -548,6 +548,14 @@ class UsersController < ApplicationController
format.api { render_validation_errors(@user) }
end
end
unless @user.id.nil?
#后台注册的用户默认权限为男性开发员
ue = UserExtensions.create(:identity => 3,
:gender => 0,
:user_id => @user.id)
ue.save
end
end
def edit