diff --git a/swad_changelog.h b/swad_changelog.h index 49793a1e3..9c6c8b0a7 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_game.c b/swad_game.c index 8e676b8d0..6d733c2cd 100644 --- a/swad_game.c +++ b/swad_game.c @@ -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; } diff --git a/swad_game.h b/swad_game.h index 27c30083c..200e8a3f3 100644 --- a/swad_game.h +++ b/swad_game.h @@ -49,7 +49,6 @@ struct Game struct { bool Visible; // Game is not hidden - bool ICanViewResults; bool ICanEdit; } Status; };