Version 15.162.5

This commit is contained in:
Antonio Cañas Vargas 2016-03-24 21:25:19 +01:00
parent 976c136d86
commit 7db542f216
2 changed files with 6 additions and 4 deletions

View File

@ -123,7 +123,6 @@
// TODO: To avoid wrong email addresses, when a user fills his/her email address, check if the domain is in the white list of allowed domains. If not, ask for confirmation.
// TODO: Important!!!! E-mail should not be visible for not logged users
// TODO: Fix bug in marks reported by Francisco Ocaña
// TODO:
// TODO: Button to see result of a survey in listing of surveys should be smaller?
// TODO: Icon to the left in list of forums is not correct when scope is system
@ -133,13 +132,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.162.4 (2016-03-24)"
#define Log_PLATFORM_VERSION "SWAD 15.162.5 (2016-03-24)"
#define CSS_FILE "swad15.162.1.css"
#define JS_FILE "swad15.131.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 15.162.5: Mar 24, 2016 Default role in registration form will be teacher for the creator of a course. (196615 lines)
Version 15.162.4: Mar 24, 2016 Changes in button shown after editing institutions. (196612 lines)
Version 15.162.3: Mar 24, 2016 Changes in button shown after editing centres. (196609 lines)
Version 15.162.2: Mar 24, 2016 Changes in button shown after editing degrees. (196606 lines)

View File

@ -2510,8 +2510,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
switch (TypeOfView)
{
case Rec_FORM_SIGN_UP: // I want to apply for enrollment
DefaultRoleInCurrentCrs = (UsrDat->Roles & (1 << Rol_TEACHER)) ? Rol_TEACHER :
Rol_STUDENT;
DefaultRoleInCurrentCrs = ((UsrDat->Roles & (1 << Rol_TEACHER)) || // I am teacher in other courses
UsrDat->UsrCod == Gbl.CurrentCrs.Crs.RequesterUsrCod) ? // I am the creator of the course
Rol_TEACHER :
Rol_STUDENT;
fprintf (Gbl.F.Out,"<select name=\"Role\">");
for (Role = Rol_STUDENT;
Role <= Rol_TEACHER;