From 710a82e8466d2b8cef1522c1172185b1afa0feb3 Mon Sep 17 00:00:00 2001 From: acanas Date: Sun, 21 May 2023 19:15:55 +0200 Subject: [PATCH] Version 22.116.1: May 21, 2023 Rubrics only availables for superusers. --- swad_action_list.c | 2 +- swad_changelog.h | 3 ++- swad_project.c | 3 ++- swad_project_config.c | 11 +++++++---- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/swad_action_list.c b/swad_action_list.c index 5fd04419..fb1ae1ac 100644 --- a/swad_action_list.c +++ b/swad_action_list.c @@ -599,7 +599,7 @@ const struct Act_Actions ActLst_Actions[ActLst_NUM_ACTIONS] = [ActReqTst ] = { 103, 4,TabAss,ActReqTst ,0x238,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Tst_ReqTest ,"check" }, [ActSeeAllExa ] = {1848, 5,TabAss,ActSeeAllExa ,0x238,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Exa_SeeAllExams ,"file-signature" }, [ActSeeAllGam ] = {1649, 6,TabAss,ActSeeAllGam ,0x238,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Gam_SeeAllGames ,"gamepad" }, - [ActSeeAllRub ] = {1951, 7,TabAss,ActSeeAllRub ,0x230,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Rub_SeeAllRubrics ,"tasks" }, + [ActSeeAllRub ] = {1951, 7,TabAss,ActSeeAllRub ,0x200,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Rub_SeeAllRubrics ,"tasks" }, // Actions not in menu: [ActFrmNewAsg ] = { 812,-1,TabUnk,ActSeeAllAsg ,0x220,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Asg_ReqCreatOrEditAsg ,NULL}, diff --git a/swad_changelog.h b/swad_changelog.h index 3bc5b45e..2a0a4ae9 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. */ -#define Log_PLATFORM_VERSION "SWAD 22.116 (2023-05-20)" +#define Log_PLATFORM_VERSION "SWAD 22.116.1 (2023-05-21)" #define CSS_FILE "swad22.107.36.css" #define JS_FILE "swad22.49.js" /* + Version 22.116.1: May 21, 2023 Rubrics only availables for superusers. (337098 lines) Version 22.116: May 20, 2023 Changes in rubric scores. (337093 lines) Version 22.115: May 19, 2023 Generalization of rubric scores. (337010 lines) 1 change necessary in database: diff --git a/swad_project.c b/swad_project.c index d67d9393..6bdac6c5 100644 --- a/swad_project.c +++ b/swad_project.c @@ -1366,7 +1366,8 @@ void Prj_ShowBoxWithOneProject (struct Prj_Projects *Projects) Brw_ShowFileBrowserProject (Projects->Prj.PrjCod); /***** Show project rubrics *****/ - Prj_ShowRubrics (Projects); + if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM) // TODO: Remove this rectriction when rubrics are finished + Prj_ShowRubrics (Projects); /***** End box *****/ Box_BoxEnd (); diff --git a/swad_project_config.c b/swad_project_config.c index 020c58d6..0e5a88e6 100644 --- a/swad_project_config.c +++ b/swad_project_config.c @@ -121,10 +121,13 @@ void PrjCfg_ShowFormConfig (void) Frm_EndForm (); /***** Rubrics *****/ - HTM_FIELDSET_Begin (NULL); - HTM_LEGEND (Txt_Rubrics); - PrjCfg_ShowFormsRubrics (); - HTM_FIELDSET_End (); + if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM) // TODO: Remove this rectriction when rubrics are finished + { + HTM_FIELDSET_Begin (NULL); + HTM_LEGEND (Txt_Rubrics); + PrjCfg_ShowFormsRubrics (); + HTM_FIELDSET_End (); + } /***** End box *****/ Box_BoxEnd ();