Version 6.x.x Source

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: