mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
[refactor] has_website_permission parameters
This commit is contained in:
@@ -19,5 +19,5 @@ def get_context(context):
|
|||||||
|
|
||||||
context.enabled_checkout = frappe.get_doc("Shopping Cart Settings").enable_checkout
|
context.enabled_checkout = frappe.get_doc("Shopping Cart Settings").enable_checkout
|
||||||
|
|
||||||
if not context.doc.has_website_permission("read"):
|
if not frappe.has_website_permission(context.doc):
|
||||||
frappe.throw(_("Not Permitted"), frappe.PermissionError)
|
frappe.throw(_("Not Permitted"), frappe.PermissionError)
|
||||||
|
|||||||
Reference in New Issue
Block a user