family assignment logic on user perms of external modules (#36456)

* family assignment logic on user perms of external modules

Updated family assignment logic to default to 'other' if family does not exist in $familyinfo.

* Update copyright year for Charlene Benke
This commit is contained in:
Charlène Benke 2026-02-04 17:19:23 +01:00 committed by Laurent Destailleur
parent 2304e4ccfe
commit ca64d18833

View file

@ -8,6 +8,7 @@
* Copyright (C) 2020 Tobias Sekan <tobias.sekan@startmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2025-2026 Charlene Benke <charlene@patas-monkey.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -503,6 +504,10 @@ if ($result) {
$obj->family = 'other';
}
// Si la famille n'existe pas dans $familyinfo, on utilise 'other'
if (!empty($obj->family) && !isset($familyinfo[$obj->family])) {
$obj->family = 'other';
}
if (empty($obj->family_position)) {
$obj->family_position = $familyinfo[$obj->family]['position'];
if ($obj->module_position < 100000) {