Fix bug.
This commit is contained in:
parent
dcbd0c8b06
commit
1b48d72591
|
@ -557,9 +557,9 @@ class Admin::SitePanelController < OrbitAdminController
|
|||
super_user = nil
|
||||
if site_server_ids.present?
|
||||
site_server_ids.each_with_index do |site_server_id, i|
|
||||
super_user = SiteSuperUser.where(:site_construct_id=>site_construct_id, :user_name=>user_name).first
|
||||
super_user = SiteSuperUser.where(:site_server_id=>site_server_id, :user_name=>user_name).first
|
||||
if super_user.nil?
|
||||
super_user = SiteSuperUser.new(:site_construct_id=>site_construct_id, :user_name=>user_name)
|
||||
super_user = SiteSuperUser.new(:site_server_id=>site_server_id, :user_name=>user_name)
|
||||
@create_super_user = true
|
||||
end
|
||||
super_user.update_password_digest(password_digest)
|
||||
|
|
Loading…
Reference in New Issue