mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 11:38:32 +00:00
fix: clear cashe on employee hierarchy change to reflect updated permissions
This commit is contained in:
@@ -80,6 +80,7 @@ class Employee(NestedSet):
|
||||
|
||||
def on_update(self):
|
||||
self.update_nsm_model()
|
||||
frappe.clear_cache()
|
||||
if self.user_id:
|
||||
self.update_user()
|
||||
self.update_user_permissions()
|
||||
|
||||
Reference in New Issue
Block a user