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