fix: restrict app in apps page if no access to FCRM module
(cherry picked from commit 3881179f723ce21986ba8a683ef5ab9d851e7aae) # Conflicts: # crm/api/__init__.py
This commit is contained in:
parent
ff4693dde7
commit
7858ce7095
@ -64,7 +64,11 @@ def check_app_permission():
|
|||||||
if frappe.session.user == "Administrator":
|
if frappe.session.user == "Administrator":
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
allowed_modules = get_modules_from_all_apps_for_user()
|
allowed_modules = get_modules_from_all_apps_for_user()
|
||||||
|
=======
|
||||||
|
allowed_modules = frappe.utils.modules.get_modules_from_all_apps_for_user()
|
||||||
|
>>>>>>> 3881179 (fix: restrict app in apps page if no access to FCRM module)
|
||||||
allowed_modules = [x["module_name"] for x in allowed_modules]
|
allowed_modules = [x["module_name"] for x in allowed_modules]
|
||||||
if "FCRM" not in allowed_modules:
|
if "FCRM" not in allowed_modules:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user