修正后台注册用户问题
This commit is contained in:
parent
6f0e621f3c
commit
b733f5c2b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue