From bc5e3ea9d7cde63fac6ace2820508025ae1e015d Mon Sep 17 00:00:00 2001 From: Horilla Date: Sat, 1 Nov 2025 11:48:54 +0530 Subject: [PATCH] [FIX] BASE: Restrict own records of employee profile edit fixes --- base/context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/context_processors.py b/base/context_processors.py index ae4940f17..a5a581a0c 100644 --- a/base/context_processors.py +++ b/base/context_processors.py @@ -293,7 +293,7 @@ def enable_profile_edit(request): from accessibility.accessibility import ACCESSBILITY_FEATURE profile_edit = ProfileEditFeature.objects.filter().first() - enable = True if profile_edit and profile_edit.is_enabled else False + enable = False if profile_edit and profile_edit.is_enabled else True if enable: if not any(item[0] == "profile_edit" for item in ACCESSBILITY_FEATURE): ACCESSBILITY_FEATURE.append(("profile_edit", _("Profile Edit Access")))