Version19.19.4

This commit is contained in:
Antonio Cañas Vargas 2019-09-29 19:42:33 +02:00
parent f19733e00e
commit 97096702d3
3 changed files with 2 additions and 9 deletions

View File

@ -471,10 +471,11 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 19.19.3 (2019-09-29)"
#define Log_PLATFORM_VERSION "SWAD 19.19.4 (2019-09-29)"
#define CSS_FILE "swad19.15.css"
#define JS_FILE "swad19.15.js"
/*
Version 19.19.4: Sep 29, 2019 Code refactoring in games. (246638 lines)
Version 19.19.3: Sep 29, 2019 Students will not see matches results for groups to which they don't belong. (246645 lines)
Version 19.19.2: Sep 29, 2019 Students will not see icons to remove matches. (246619 lines)
Version 19.19.1: Sep 29, 2019 Students will not see matches for groups to which they don't belong. (246601 lines)

View File

@ -774,27 +774,21 @@ void Gam_GetDataOfGameByCod (struct Game *Game)
switch (Gbl.Usrs.Me.Role.Logged)
{
case Rol_STD:
Game->Status.ICanViewResults = Game->NumQsts != 0 &&
Game->Status.Visible;
Game->Status.ICanEdit = false;
break;
case Rol_NET:
Game->Status.ICanViewResults = Game->NumQsts != 0;
Game->Status.ICanEdit = false;
break;
case Rol_TCH:
case Rol_DEG_ADM:
case Rol_CTR_ADM:
case Rol_INS_ADM:
Game->Status.ICanViewResults = Game->NumQsts != 0;
Game->Status.ICanEdit = true;
break;
case Rol_SYS_ADM:
Game->Status.ICanViewResults = Game->NumQsts != 0;
Game->Status.ICanEdit = true;
break;
default:
Game->Status.ICanViewResults = false;
Game->Status.ICanEdit = false;
break;
}
@ -853,7 +847,6 @@ static void Gam_ResetGame (struct Game *Game)
Game->NumQsts = 0;
Game->NumMchs = 0;
Game->Status.Visible = true;
Game->Status.ICanViewResults = false;
Game->Status.ICanEdit = false;
}

View File

@ -49,7 +49,6 @@ struct Game
struct
{
bool Visible; // Game is not hidden
bool ICanViewResults;
bool ICanEdit;
} Status;
};