1
0
forked from test/crm

Merge branch 'main' into main-hotfix

This commit is contained in:
Shariq Ansari 2025-06-30 20:15:43 +05:30 committed by GitHub
commit c1203d465a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
__version__ = "1.40.0"
__version__ = "1.48.2"
__title__ = "Frappe CRM"

View File

@ -1,5 +1,6 @@
import frappe
from bs4 import BeautifulSoup
from frappe.config import get_modules_from_all_apps_for_user
from frappe.core.api.file import get_max_file_size
from frappe.translate import get_all_translations
from frappe.utils import cstr, split_emails, validate_email_address
@ -63,10 +64,10 @@ def check_app_permission():
if frappe.session.user == "Administrator":
return True
# allowed_modules = frappe.utils.modules.get_modules_from_all_apps_for_user()
# allowed_modules = [x["module_name"] for x in allowed_modules]
# if "FCRM" not in allowed_modules:
# return False
allowed_modules = get_modules_from_all_apps_for_user()
allowed_modules = [x["module_name"] for x in allowed_modules]
if "FCRM" not in allowed_modules:
return False
roles = frappe.get_roles()
if any(