'Raise `frappe.PermissionError`.'

def raise_no_permission_to(self, perm_type):

    frappe.flags.error_message = _(u'Insufficient    Permission    for    {0}').format(self.doctype)
    raise frappe.PermissionError
