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:
parent
2304e4ccfe
commit
ca64d18833
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue