diff --git a/swad_changelog.h b/swad_changelog.h index c9c0e3ee6..3ef611829 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_record.c b/swad_record.c index 06a2d3944..8814c8258 100644 --- a/swad_record.c +++ b/swad_record.c @@ -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,"