def has_website_permission(self, permtype="read", verbose=False):
		if self.flags.ignore_permissions:
			return True

		return (frappe.has_website_permission(self.doctype, permtype, self, verbose=verbose)
			or self.has_permission(permtype, verbose=verbose))
Call `frappe.has_website_permission` if `self.flags.ignore_permissions`
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.has_website_permission