fix: Semgrep

This commit is contained in:
Rahul Agrawal
2026-04-03 08:25:41 +05:30
parent b1c68ad4f3
commit 3d37461a73

View File

@@ -23,7 +23,7 @@ def after_insert(doc, method):
doc.add_roles("LMS Student")
@frappe.whitelist(allow_guest=True)
@frappe.whitelist(allow_guest=True) # nosemgrep: frappe-semgrep-rules.rules.security.guest-whitelisted-method
def sign_up(email: str, full_name: str, verify_terms: bool, user_category: str):
if is_signup_disabled():
frappe.throw(_("Sign Up is disabled"), _("Not Allowed"))