Logging In As Vendor

Hi,

As an admin I'm able to log in as any vendor that's on the platform - is there a way to remove this for security purposes? Similarly for logging in as customer?

Thanks

Neha

app/controllers/backend/profiles.php

search by "act_as_user"

Thank you!