share_2.py 230 B

1234567
  1. def remove(doctype, name, user, flags=None):
  2. share_name = frappe.db.get_value("DocShare", {"user": user, "share_name": name,
  3. "share_doctype": doctype})
  4. if share_name:
  5. frappe.delete_doc("DocShare", share_name, flags=flags)