From ab57260d02eece4ff041092a2fb1daee993f97b3 Mon Sep 17 00:00:00 2001 From: Mark Penalosa Date: Thu, 30 Apr 2026 08:52:25 +0800 Subject: [PATCH] fix(spp_dms): fix DMS app visibility and hide deprecated group from UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DMS app was not appearing on the home screen for users assigned Viewer, Officer, or Manager roles because the main menu was gated on (deprecated). The current role hierarchy only flows downward (group_dms_user → group_dms_officer → group_dms_viewer), so none of the active roles implied the deprecated group, making the app invisible to all non-admin users. Changes: - main_view.xml: change menu group gate from to so any assigned DMS role grants access to the app - security.xml: remove from so it no longer appears in the privilege selector in Settings; the record is kept for backwards compatibility with existing data --- spp_dms/security/security.xml | 1 - spp_dms/views/main_view.xml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spp_dms/security/security.xml b/spp_dms/security/security.xml index 4f8051c0..ad945b9a 100644 --- a/spp_dms/security/security.xml +++ b/spp_dms/security/security.xml @@ -64,7 +64,6 @@ User (Deprecated) - DEPRECATED: Legacy group maintained for backwards compatibility. Use group_dms_officer instead. diff --git a/spp_dms/views/main_view.xml b/spp_dms/views/main_view.xml index f379e8e6..dc611b97 100644 --- a/spp_dms/views/main_view.xml +++ b/spp_dms/views/main_view.xml @@ -3,7 +3,7 @@ id="main_menu_spp_dms" name="DMS" web_icon="spp_dms,static/description/OpenSPP-Icons-DMS.png" - groups="spp_dms.group_dms_user" + groups="spp_dms.group_dms_viewer" />