fix: remove unecessary user check for guest commenting

This commit is contained in:
sokumon 2026-04-06 13:53:43 +05:30
parent 118cb4490f
commit 8d53f632e3

View file

@ -43,9 +43,6 @@ def add_comment(
if not guest_allowed:
frappe.throw(_("Please login to post a comment."))
if frappe.db.exists("User", comment_email):
frappe.throw(_("Please login to post a comment."))
if not comment.strip():
frappe.msgprint(_("The comment cannot be empty"))
return False