[refactor] has_website_permission parameters
This commit is contained in:
parent
bb7308bbc1
commit
257bbbe588
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user