From 859c488098a65d464918db46c53e818c63c7b2e8 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 3 Oct 2023 19:27:10 +0200 Subject: [PATCH] Version 23.25.1: Oct 03, 2023 Fixed recent bug in user's roles. --- swad_changelog.h | 5 +++-- swad_role.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index e23afdc0e..d80131af4 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -632,11 +632,12 @@ TODO: Francisco Javier Fern Me sale este error, no sé si por no recordar yo la sintaxis apropiada para mandar a varios destinatarios. ¿No era así? "can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod') */ -#define Log_PLATFORM_VERSION "SWAD 23.25 (2023-10-03)" +#define Log_PLATFORM_VERSION "SWAD 23.25.1 (2023-10-03)" #define CSS_FILE "swad23.16.1.css" #define JS_FILE "swad22.49.js" /* - Version 23.25: Oct 03, 2023 Code refactoring in user's roles. (336276 lines) + Version 23.25.1: Oct 03, 2023 Fixed recent bug in user's roles. (336225 lines) + Version 23.25: Oct 03, 2023 Code refactoring in user's roles. (336224 lines) Version 23.24: Oct 03, 2023 Code refactoring in user's hierarchy. (336276 lines) Version 23.23.1: Oct 03, 2023 Removed unused code in user's hierarchy. (336349 lines) Version 23.23: Oct 03, 2023 Code refactoring in user's hierarchy. (336620 lines) diff --git a/swad_role.c b/swad_role.c index b3849cec3..31aae8950 100644 --- a/swad_role.c +++ b/swad_role.c @@ -259,7 +259,7 @@ Rol_Role_t Rol_GetMyMaxRoleIn (Hie_Level_t Level,long HieCod) return Rol_UNK; /***** Fill the list with the nodes I belong to (if not already filled) *****/ - Hie_GetMyHierarchy (HieCod); + Hie_GetMyHierarchy (Level); /***** Check if the node passed as parameter is any of my nodes *****/ for (NumMyNode = 0;