def has_permission(self, permtype="read", verbose=False):
		if self.flags.ignore_permissions:
			return True
		return frappe.has_permission(self.doctype, permtype, self, verbose=verbose)
Call `frappe.has_permission` if `self.flags.ignore_permissions`
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.has_permission