fix: allowed only POST and PUT methods in rename_doc (#20504)
This commit is contained in:
parent
d2bde19b5c
commit
3db1c1aea0
1 changed files with 1 additions and 1 deletions
|
|
@ -1274,7 +1274,7 @@ def reload_doc(
|
|||
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
|
||||
|
||||
|
||||
@whitelist()
|
||||
@whitelist(methods=["POST", "PUT"])
|
||||
def rename_doc(
|
||||
doctype: str,
|
||||
old: str,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue