[wnf] [reset perms] fix
This commit is contained in:
parent
d572c91210
commit
5bc9aa4efc
1 changed files with 5 additions and 2 deletions
7
wnf.py
7
wnf.py
|
|
@ -503,8 +503,11 @@ def run():
|
|||
elif options.reset_perms:
|
||||
for d in webnotes.conn.sql_list("""select name from `tabDocType`
|
||||
where ifnull(istable, 0)=0 and ifnull(custom, 0)=0"""):
|
||||
webnotes.reset_perms(d)
|
||||
webnotes.clear_cache(doctype=d)
|
||||
try:
|
||||
webnotes.clear_cache(doctype=d)
|
||||
webnotes.reset_perms(d)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
if __name__=='__main__':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue