mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 21:42:11 +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):
|
def on_update(self):
|
||||||
self.update_nsm_model()
|
self.update_nsm_model()
|
||||||
|
frappe.clear_cache()
|
||||||
if self.user_id:
|
if self.user_id:
|
||||||
self.update_user()
|
self.update_user()
|
||||||
self.update_user_permissions()
|
self.update_user_permissions()
|
||||||
|
|||||||
Reference in New Issue
Block a user