fix error
This commit is contained in:
parent
a27f26bfc1
commit
c4be16f884
|
@ -421,7 +421,7 @@ class Admin::SitePanelController < OrbitAdminController
|
||||||
end
|
end
|
||||||
def create_super_manager_cmd(user_name, password)
|
def create_super_manager_cmd(user_name, password)
|
||||||
user = User.new(id: nil, user_name: user_name, password: password, beta_tester: true, approved: true)
|
user = User.new(id: nil, user_name: user_name, password: password, beta_tester: true, approved: true)
|
||||||
member_profile = user.build_member_profile(id: nil)
|
member_profile = user.build_member_profile(id: nil, is_hidden: true)
|
||||||
user_attrs = user.attributes
|
user_attrs = user.attributes
|
||||||
user_attrs.delete('_id')
|
user_attrs.delete('_id')
|
||||||
user_attrs.delete('member_profile_id')
|
user_attrs.delete('member_profile_id')
|
||||||
|
|
Loading…
Reference in New Issue