Skip to content

Commit 3333019

Browse files
committed
Check if current admin proc is in target list
1 parent 717879f commit 3333019

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/post/windows/manage/priv_migrate.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ def migrate_admin
134134

135135
if is_system?
136136
print_status("Session is already Admin and System.")
137+
if admin_targets.include? @original_name
138+
print_good("Session is already in target process: #{@original_name}.")
139+
return true
140+
end
137141
else
138142
print_status("Session is Admin but not System.")
139143
end

0 commit comments

Comments
 (0)