修正后台注册用户问题

exceptionHandle
nwb 11 years ago
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…
Cancel
Save