From 3b78470301edceb3aebff5ce8ec9f4164ba0222e Mon Sep 17 00:00:00 2001 From: acanas Date: Thu, 29 Sep 2022 01:46:52 +0200 Subject: [PATCH] Version 22.32.3: Sep 29, 2022 Changes in program resources and games. --- swad_changelog.h | 3 ++- swad_game.c | 6 ++++++ swad_game_resource.c | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index d27eb7d82..11f6dddb2 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate TODO: Attach pdf files in multimedia. */ -#define Log_PLATFORM_VERSION "SWAD 22.32.2 (2022-09-29)" +#define Log_PLATFORM_VERSION "SWAD 22.32.3 (2022-09-29)" #define CSS_FILE "swad22.22.1.css" #define JS_FILE "swad21.100.js" /* + Version 22.32.3: Sep 29, 2022 Changes in program resources and games. (332642 lines) Version 22.32.2: Sep 29, 2022 Changes in program resources and exams. (332637 lines) Version 22.32.1: Sep 29, 2022 Changes in program resources and calls for exams. (332635 lines) Version 22.32: Sep 29, 2022 Changes in program resources, assignments and projects. (332628 lines) diff --git a/swad_game.c b/swad_game.c index 97acb0ff6..8d330a56a 100644 --- a/swad_game.c +++ b/swad_game.c @@ -393,6 +393,12 @@ static void Gam_PutIconsListGames (void *Games) Ico_PutContextualIconToShowResults (NextAction[Gbl.Usrs.Me.Role.Logged],NULL, NULL,NULL); + /***** Link to get resource link *****/ + if (Gbl.Usrs.Me.Role.Logged == Rol_TCH || // Only if I am a teacher + Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM) // or a superuser + Ico_PutContextualIconToGetLink (ActReqLnkGam,NULL, + Gam_PutParams,Games); + /***** Put icon to show a figure *****/ Fig_PutIconToShowFigure (Fig_GAMES); } diff --git a/swad_game_resource.c b/swad_game_resource.c index a9286fafc..53a4aef2f 100644 --- a/swad_game_resource.c +++ b/swad_game_resource.c @@ -48,8 +48,7 @@ void GamRsc_GetLinkToGame (void) Gam_ResetGames (&Games); /***** Get parameters *****/ - if ((GamCod = Gam_GetParams (&Games)) <= 0) - Err_WrongGameExit (); + GamCod = Gam_GetParams (&Games); /***** Get game title *****/ GamRsc_GetTitleFromGamCod (GamCod,Title,sizeof (Title) - 1);