'Call `frappe.has_permission` if `self.flags.ignore_permissions`
is not set.
:param permtype: one of `read`, `write`, `submit`, `cancel`, `delete`'

def has_permission(self, permtype=u'read', verbose=False):

    if self.flags.ignore_permissions:
        return True
    return frappe.has_permission(self.doctype, permtype, self, verbose=verbose)
