Version 16.225.9

This commit is contained in:
Antonio Cañas Vargas 2017-05-29 12:09:51 +02:00
parent ee247f0266
commit 9628123aae
2 changed files with 69 additions and 42 deletions

View File

@ -233,13 +233,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.225.8 (2017-05-29)"
#define Log_PLATFORM_VERSION "SWAD 16.225.9 (2017-05-29)"
#define CSS_FILE "swad16.222.css"
#define JS_FILE "swad16.206.3.js"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/*
Version 16.225.9: May 29, 2017 Fixed minor bug in user administration. (220540 lines)
Version 16.225.8: May 29, 2017 Statistics of hits in course accessible by non-editing teachers.
Changes in error handlong in stats of hits. (220514 lines)
Version 16.225.7: May 26, 2017 Fix bug in order of users when listing record cards of teachers.

View File

@ -6711,8 +6711,13 @@ void Usr_ListDataAdms (void)
const char *FieldNames[Usr_NUM_MAIN_FIELDS_DATA_ADM];
/***** Put contextual links *****/
if (Gbl.Usrs.Me.LoggedRole >= Rol_TCH)
switch (Gbl.Usrs.Me.LoggedRole)
{
case Rol_TCH:
case Rol_DEG_ADM:
case Rol_CTR_ADM:
case Rol_INS_ADM:
case Rol_SYS_ADM:
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM)
@ -6732,6 +6737,9 @@ void Usr_ListDataAdms (void)
Enr_PutLinkToRemOldUsrs ();
fprintf (Gbl.F.Out,"</div>");
break;
default:
break;
}
/***** Initialize field names *****/
@ -7332,11 +7340,20 @@ void Usr_SeeStudents (void)
bool ICanViewRecords;
/***** Put contextual links *****/
if (Gbl.Usrs.Me.LoggedRole >= Rol_STD)
switch (Gbl.Usrs.Me.LoggedRole)
{
case Rol_STD:
case Rol_TCH:
case Rol_DEG_ADM:
case Rol_CTR_ADM:
case Rol_INS_ADM:
case Rol_SYS_ADM:
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
if (Gbl.Usrs.Me.LoggedRole >= Rol_TCH) // I am logged as teacher or admin
if (Gbl.Usrs.Me.LoggedRole == Rol_STD)
/* Put link to go to admin me */
Enr_PutLinkToAdminOneUsr (ActReqMdfOneStd);
else
{
/* Put link to go to admin one user */
Enr_PutLinkToAdminOneUsr (ActReqMdfOneStd);
@ -7350,11 +7367,11 @@ void Usr_SeeStudents (void)
Rec_PutLinkToEditRecordFields ();
}
}
else
/* Put link to go to admin one user */
Enr_PutLinkToAdminOneUsr (ActReqMdfOneStd);
fprintf (Gbl.F.Out,"</div>");
break;
default:
break;
}
/***** Get and update type of list,
@ -7507,8 +7524,13 @@ void Usr_SeeTeachers (void)
unsigned NumUsrs;
/***** Put contextual links *****/
if (Gbl.Usrs.Me.LoggedRole >= Rol_TCH) // I am logged as teacher or admin
switch (Gbl.Usrs.Me.LoggedRole)
{
case Rol_NET:
case Rol_TCH:
case Rol_DEG_ADM:
case Rol_CTR_ADM:
case Rol_INS_ADM:
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
/* Put link to go to admin one user */
@ -7520,6 +7542,10 @@ void Usr_SeeTeachers (void)
Enr_PutLinkToAdminSeveralUsrs (Rol_TCH);
fprintf (Gbl.F.Out,"</div>");
break;
default:
break;
}
/***** Get and update type of list,