From ddddce93bea1780d48a58cb808256b0ff58f25b8 Mon Sep 17 00:00:00 2001 From: acanas Date: Thu, 29 Sep 2022 16:50:42 +0200 Subject: [PATCH] Version 22.33.1: Sep 29, 2022 Changes in program resources and attendance events. --- swad_attendance.c | 6 ++++++ swad_attendance_resource.c | 3 +-- swad_changelog.h | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/swad_attendance.c b/swad_attendance.c index f428cb89b..1f620397b 100644 --- a/swad_attendance.c +++ b/swad_attendance.c @@ -367,6 +367,12 @@ static void Att_PutIconsInListOfAttEvents (void *Events) /***** Put icon to print my QR code *****/ QR_PutLinkToPrintQRCode (ActPrnUsrQR, Usr_PutParamMyUsrCodEncrypted,Gbl.Usrs.Me.UsrDat.EnUsrCod); + + /***** Put icon 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 (ActReqLnkAtt,NULL, + Att_PutParams,Events); } } diff --git a/swad_attendance_resource.c b/swad_attendance_resource.c index 8444c2d92..9ecbc6225 100644 --- a/swad_attendance_resource.c +++ b/swad_attendance_resource.c @@ -43,8 +43,7 @@ void AttRsc_GetLinkToEvent (void) char Title[Att_MAX_BYTES_ATTENDANCE_EVENT_TITLE + 1]; /***** Get attendance event code *****/ - if ((AttCod = Att_GetParamAttCod ()) < 0) - Err_WrongEventExit (); + AttCod = Att_GetParamAttCod (); /***** Get attendance event title *****/ AttRsc_GetTitleFromAttCod (AttCod,Title,sizeof (Title) - 1); diff --git a/swad_changelog.h b/swad_changelog.h index ec62d048f..a48801728 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -606,13 +606,13 @@ 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.33 (2022-09-29)" +#define Log_PLATFORM_VERSION "SWAD 22.33.1 (2022-09-29)" #define CSS_FILE "swad22.22.1.css" #define JS_FILE "swad21.100.js" /* Version 22.33.3: Sep 29, 2022 TODO: Fix layout of marks file metadata. (? lines) Version 22.33.2: Sep 29, 2022 TODO: Changes in program resources and course forums. (? lines) - Version 22.33.1: Sep 29, 2022 TODO: Changes in program resources and attendance events. (? lines) + Version 22.33.1: Sep 29, 2022 Changes in program resources and attendance events. (332687 lines) Version 22.33: Sep 29, 2022 Changes in program resources, documents and mark files. (332683 lines) Version 22.32.4: Sep 29, 2022 Changes in program resources and surveys. (332650 lines) Version 22.32.3: Sep 29, 2022 Changes in program resources and games. (332642 lines)