From 28947b33dd8c0a090e7751d47925baa91b6e721e Mon Sep 17 00:00:00 2001 From: sokumon Date: Mon, 5 May 2025 16:45:50 +0530 Subject: [PATCH] fix: add informative guest message --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index 55813cd4cb..967b851e0e 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -666,7 +666,7 @@ def is_whitelisted(method): is_guest = session["user"] == "Guest" if method not in whitelisted or (is_guest and method not in guest_methods): - summary = _("You are not permitted to access this resource.") + summary = _("You are not permitted to access this resource. Login to access") detail = _("Function {0} is not whitelisted.").format(bold(f"{method.__module__}.{method.__name__}")) msg = f"
{summary}{detail}
" throw(msg, PermissionError, title=_("Method Not Allowed"))