Version 15.242.5

This commit is contained in:
Antonio Cañas Vargas 2016-07-15 19:13:20 +02:00
parent 0a1c538e4a
commit 5a3eefb9b8
3 changed files with 5 additions and 3 deletions

View File

@ -138,13 +138,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.242.4 (2016-07-15)"
#define Log_PLATFORM_VERSION "SWAD 15.242.5 (2016-07-15)"
#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 15.242.5: Jul 15, 2016 Fixed bug in user's registration. (203849 lines)
Version 15.242.4: Jul 15, 2016 Fixed bug in creation of database table file_browser_size. (203847 lines)
Version 15.242.3: Jul 14, 2016 Fixed bug in getting/finding users, due to default mysql mode in 5.7 which is ONLY_FULL_GROUP_BY. (203846 lines)
Version 15.242.2: Jul 08, 2016 Code refactoring related to users' photos.

View File

@ -244,11 +244,12 @@ void Enr_RegisterUsrInCurrentCrs (struct UsrData *UsrDat,Rol_Role_t NewRole,
"LastDowGrpCod,LastComGrpCod,LastAssGrpCod,NumAccTst,LastAccTst,NumQstsLastTst,"
"UsrListType,ColsClassPhoto,ListWithPhotos)"
" VALUES ('%ld','%ld','%u','%c',"
"'-1','-1','-1','0','0000-00-00','0',"
"'-1','-1','-1','0',FROM_UNIXTIME('%ld'),'0',"
"'%s','%u','%c')",
Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod,(unsigned) NewRole,
KeepOrSetAccepted == Enr_SET_ACCEPTED_TO_TRUE ? 'Y' :
'N',
(long) (time_t) 0, // The user never accessed to tests in this course
Usr_StringsUsrListTypeInDB[Usr_SHOW_USRS_TYPE_DEFAULT],
Usr_CLASS_PHOTO_COLS_DEF,
Usr_LIST_WITH_PHOTOS_DEF ? 'Y' :

View File

@ -623,7 +623,7 @@ static bool Tst_CheckIfNextTstAllowed (void)
long NumSecondsFromNowToNextAccTst = -1L; // Access allowed when this number <= 0
time_t TimeNextTestUTC = (time_t) 0;
/***** Superusers are allowed to do all test they want *****/
/***** Superusers are allowed to do all tests they want *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM)
return true;