Version 16.14

This commit is contained in:
Antonio Cañas Vargas 2016-10-06 18:46:59 +02:00
parent 320b0b59bb
commit fc5338de66
3 changed files with 7 additions and 38 deletions

View File

@ -138,18 +138,22 @@
// TODO: Send a message to the user when rejecting a request for enrollment. Suggested by Javier Fernández Baldomero.
// TODO: Create a table with IPs to block temporarily multiple access to the action used to check ID for empty accounts
// TODO: Every action should have a minimum time between two clicks on it (for example "Generate a report" should have 60 s)
// TODO: FIX BUG: Centre and degree admins should see buttons to admin users even a course is not selected
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.13.2 (2016-10-05)"
#define Log_PLATFORM_VERSION "SWAD 16.14 (2016-10-06)"
#define CSS_FILE "swad15.229.css"
#define JS_FILE "swad15.238.1.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.14: Oct 06, 2016 By default, teachers see (do not edit) documents. Now they must click on small edit icon to edit. (205875 lines)
Version 16.13.2: Oct 05, 2016 User's usage report is open to any logged user. (205907 lines)
Version 16.13.1: Oct 04, 2016 Changes in user's usage report. (205906 lines)
Version 16.13: Oct 04, 2016 New filename for user's usage report. (205883 lines)

View File

@ -1615,13 +1615,6 @@ void Brw_GetParAndInitFileBrowser (void)
{
/***** Documents of institution *****/
case ActSeeAdmDocIns: // Access to a documents zone from menu
if (Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM)
/* These roles can edit documents of institution */
Gbl.FileBrowser.Type = Brw_ADMI_DOCUM_INS;
else
/* The rest of roles can not edit documents of institution */
Gbl.FileBrowser.Type = Brw_SHOW_DOCUM_INS;
break;
case ActChgToSeeDocIns: // Access to see a documents zone
case ActSeeDocIns:
case ActExpSeeDocIns:
@ -1681,13 +1674,6 @@ void Brw_GetParAndInitFileBrowser (void)
/***** Documents of centre *****/
case ActSeeAdmDocCtr: // Access to a documents zone from menu
if (Gbl.Usrs.Me.LoggedRole >= Rol_CTR_ADM)
/* These roles can edit documents of centre */
Gbl.FileBrowser.Type = Brw_ADMI_DOCUM_CTR;
else
/* The rest of roles can not edit documents of centre */
Gbl.FileBrowser.Type = Brw_SHOW_DOCUM_CTR;
break;
case ActChgToSeeDocCtr: // Access to see a documents zone
case ActSeeDocCtr:
case ActExpSeeDocCtr:
@ -1747,13 +1733,6 @@ void Brw_GetParAndInitFileBrowser (void)
/***** Documents of degree *****/
case ActSeeAdmDocDeg: // Access to a documents zone from menu
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM)
/* These roles can edit documents of degree */
Gbl.FileBrowser.Type = Brw_ADMI_DOCUM_DEG;
else
/* The rest of roles can not edit documents of degree */
Gbl.FileBrowser.Type = Brw_SHOW_DOCUM_DEG;
break;
case ActChgToSeeDocDeg: // Access to see a documents zone
case ActSeeDocDeg:
case ActExpSeeDocDeg:
@ -1813,22 +1792,6 @@ void Brw_GetParAndInitFileBrowser (void)
/***** Documents of course/group *****/
case ActSeeAdmDocCrsGrp: // Access to a documents zone from menu
/* Set file browser type acording to last group accessed */
switch (Gbl.Usrs.Me.LoggedRole)
{
case Rol_TEACHER:
case Rol_SYS_ADM:
/* These roles can edit documents of course/groups */
Gbl.FileBrowser.Type = (Gbl.CurrentCrs.Grps.GrpCod > 0) ? Brw_ADMI_DOCUM_GRP :
Brw_ADMI_DOCUM_CRS;
break;
default:
/* The rest of roles can not edit documents of course/groups */
Gbl.FileBrowser.Type = (Gbl.CurrentCrs.Grps.GrpCod > 0) ? Brw_SHOW_DOCUM_GRP :
Brw_SHOW_DOCUM_CRS;
break;
}
break;
case ActChgToSeeDocCrs: // Access to see a documents zone
/* Set file browser type acording to last group accessed */
Gbl.FileBrowser.Type = (Gbl.CurrentCrs.Grps.GrpCod > 0) ? Brw_SHOW_DOCUM_GRP :

View File

@ -411,6 +411,7 @@ static void Rep_WriteHeader (struct CurrentTimeUTC *CurrentTimeUTC,
CurrentTimeUTC->StrTime);
/***** Permalink *****/
/*
fprintf (Gbl.F.Rep,"<li>%s: "
"<a href=\"%s\" target=\"_blank\""
" style=\"text-decoration:none;\">"
@ -419,6 +420,7 @@ static void Rep_WriteHeader (struct CurrentTimeUTC *CurrentTimeUTC,
"</li>",
Txt_Permalink,
Permalink,Permalink);
*/
/***** End of header *****/
fprintf (Gbl.F.Rep,"</ul>"