fix: remove unecessary user check for guest commenting
This commit is contained in:
parent
118cb4490f
commit
8d53f632e3
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue