Skip to content

Commit 0bd448a

Browse files
committed
revert: restrict app in apps page if no access to FCRM module
1 parent 2b395a0 commit 0bd448a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: crm/api/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def check_app_permission():
6363
if frappe.session.user == "Administrator":
6464
return True
6565

66-
allowed_modules = frappe.utils.modules.get_modules_from_all_apps_for_user()
67-
allowed_modules = [x["module_name"] for x in allowed_modules]
68-
if "FCRM" not in allowed_modules:
69-
return False
66+
# allowed_modules = frappe.utils.modules.get_modules_from_all_apps_for_user()
67+
# allowed_modules = [x["module_name"] for x in allowed_modules]
68+
# if "FCRM" not in allowed_modules:
69+
# return False
7070

7171
roles = frappe.get_roles()
7272
if any(

0 commit comments

Comments
 (0)