fix: only allow ldap reset password for system manager (#10076)
fix: only allow ldap reset password for system manager (#10076)

* fix: only allow ldap reset password for system manager

Signed-off-by: Chinmay D. Pai <ab3234b32bd9ecd2892f3eb0b557ab584a8ff0cf@gmail.com>

* chore: only check for system manager

Signed-off-by: Chinmay D. Pai <ab3234b32bd9ecd2892f3eb0b557ab584a8ff0cf@gmail.com>

* fix: Syntax error

Co-authored-by: Suraj Shetty <c1fab1cf28e7dcca05cc07266aa459291053d3da@users.noreply.github.com>
frappe/frappe,StrellaGroup/frappe,mhbu50/frappe,saurabh6790/frappe,mhbu50/frappe,saurabh6790/frappe,yashodhank/frappe,mhbu50/frappe,adityahase/frappe,StrellaGroup/frappe,yashodhank/frappe,almeidapaulopt/frappe,adityahase/frappe,almeidapaulopt/frappe,yashodhank/frappe,yashodhank/frappe,adityahase/frappe,mhbu50/frappe,StrellaGroup/frappe,frappe/frappe,saurabh6790/frappe,almeidapaulopt/frappe,frappe/frappe,saurabh6790/frappe,almeidapaulopt/frappe,adityahase/frappe