Merge pull request #43026 from frappe/version-15-hotfix

chore: release v15
This commit is contained in:
ruthra kumar
2024-09-05 17:13:12 +05:30
committed by GitHub
28 changed files with 450 additions and 78 deletions

View File

@@ -2,6 +2,7 @@ import functools
import inspect
import frappe
from frappe.utils.user import is_website_user
__version__ = "15.34.0"
@@ -149,3 +150,13 @@ def allow_regional(fn):
return frappe.get_attr(overrides[function_path][-1])(*args, **kwargs)
return caller
def check_app_permission():
if frappe.session.user == "Administrator":
return True
if is_website_user():
return False
return True