def check_permission(self, permtype, permlabel=None):
		"""Raise `frappe.PermissionError` if not permitted"""
		if not self.has_permission(permtype):
			self.raise_no_permission_to(permlabel and permtype)
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.check_permission/operator `or` -> `and`