share_4.py 286 B

12345678910
  1. def get_users(doctype, name):
  2. """Get list of users with which this document is shared"""
  3. return frappe.db.sql("""select
  4. `name`, `user`, `read`, `write`, `share`, `everyone`
  5. from
  6. `tabDocShare`
  7. where
  8. share_doctype=%s and share_name=%s""",
  9. (doctype, name), as_dict=True)