From c4be16f884838e559d4a9a2ccfddd69ee4695bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Wed, 2 Nov 2022 23:02:52 +0800 Subject: [PATCH] fix error --- app/controllers/admin/site_panel_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/site_panel_controller.rb b/app/controllers/admin/site_panel_controller.rb index cc3ca72..8c0671f 100644 --- a/app/controllers/admin/site_panel_controller.rb +++ b/app/controllers/admin/site_panel_controller.rb @@ -421,7 +421,7 @@ class Admin::SitePanelController < OrbitAdminController end def create_super_manager_cmd(user_name, password) 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.delete('_id') user_attrs.delete('member_profile_id')