'Return true if any of the set roles has desk access'

def has_desk_access(self):

    if (not self.roles):
        return False
    return len(frappe.db.sql(u'select    name\n DCTB  DCTB  DCTB from    `tabRole`    where    desk_access=1\n DCTB  DCTB  DCTB  DCTB and    name    in    ({0})    limit    1'.format(u',    '.join(([u'%s'] * len(self.roles)))), [d.role for d in self.roles]))
