Merge pull request #28007 from akhilnarang/fix-27931
fix: set `print_logs=False` for some `has_permission()` calls
This commit is contained in:
commit
0c38773582
1 changed files with 2 additions and 2 deletions
|
|
@ -204,13 +204,13 @@ def get_versions(doc: "Document") -> list[dict]:
|
|||
|
||||
|
||||
def get_error_log_exists(doc: "Document") -> bool:
|
||||
if has_permission("Error Log"):
|
||||
if has_permission("Error Log", print_logs=False):
|
||||
return frappe.db.exists("Error Log", {"reference_doctype": doc.doctype, "reference_name": doc.name})
|
||||
return False
|
||||
|
||||
|
||||
def get_webhook_request_log_exists(doc: "Document") -> bool:
|
||||
if has_permission("Webhook Request Log"):
|
||||
if has_permission("Webhook Request Log", print_logs=False):
|
||||
return frappe.db.exists(
|
||||
"Webhook Request Log", {"reference_doctype": doc.doctype, "reference_document": doc.name}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue