chore: No need for frappe._dict()
This commit is contained in:
parent
69d7649969
commit
dd72d5e022
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ class Document(BaseDocument):
|
|||
|
||||
def get_permlevel_access(self, permission_type='write'):
|
||||
if not hasattr(self, "_has_access_to"):
|
||||
self._has_access_to = frappe._dict()
|
||||
self._has_access_to = {}
|
||||
|
||||
if not self._has_access_to.get(permission_type):
|
||||
self._has_access_to[permission_type] = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue