Pārlūkot izejas kodu

fix: Check for command in case of API call

version-14
Deepesh Garg pirms 4 gadiem
vecāks
revīzija
f2d619bb2c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      frappe/utils/nestedset.py

+ 1
- 1
frappe/utils/nestedset.py Parādīt failu

@@ -144,7 +144,7 @@ def rebuild_tree(doctype, parent_field):
"""

# Check for perm if called from client-side
if frappe.request:
if frappe.request and frappe.local.form_dict.cmd == 'rebuild_tree':
frappe.only_for('System Manager')

# get all roots


Notiek ielāde…
Atcelt
Saglabāt