fix: translations

This commit is contained in:
Jannat Patel
2022-11-04 13:27:14 +05:30
parent 5916695d30
commit bd929bfa3f
4 changed files with 11 additions and 6 deletions

View File

@@ -224,7 +224,8 @@ def get_palette(full_name):
@frappe.whitelist(allow_guest=True)
def sign_up(email, full_name, verify_terms, user_category):
if is_signup_disabled():
frappe.throw(_("Sign Up is disabled"), title="Not Allowed")
error = _("Sign Up is disabled")
frappe.throw(error, title="Not Allowed")
user = frappe.db.get("User", {"email": email})
if user:
@@ -351,7 +352,7 @@ def get_user_details(users):
def get_users(or_filters, start, page_length, text):
# nosemgrep
users = frappe.db.sql(
"""
SELECT DISTINCT u.name