mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
fix: clear cashe on employee hierarchy change to reflect updated permissions
(cherry picked from commit 6789578b27)
This commit is contained in:
@@ -78,6 +78,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