frappe.desk.star._toggle_star (doctype, name, add=False, user=None)
Same as toggle_star but hides param user from API
Public API
/api/method/frappe.desk.star.toggle_star
frappe.desk.star.toggle_star (doctype, name, add=False)
Adds / removes the current user in the __starred_by property of the given document.
If column does not exist, will add it in the database.
The _starred_by property is always set from this function and is ignored if set via
Document API
Parameters:
doctype - DocType of the document to starname - Name of the document to staradd - Yes if star is to be added. If not Yes the star will be removed.