fix error

This commit is contained in:
邱博亞 2022-11-02 23:02:52 +08:00
parent a27f26bfc1
commit c4be16f884
1 changed files with 1 additions and 1 deletions

View File

@ -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')