From df643e1fe9cc97e9ad4e8d12e3dd17a922600d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 1 Feb 2017 19:56:46 +0100 Subject: [PATCH] Version 16.132.13 --- swad_changelog.h | 3 ++- swad_layout.c | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 3763c5c40..26a7ac1b3 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -193,13 +193,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.132.12 (2017-02-01)" +#define Log_PLATFORM_VERSION "SWAD 16.132.13 (2017-02-01)" #define CSS_FILE "swad16.132.4.css" #define JS_FILE "swad16.123.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 16.132.13:Feb 01, 2017 Global connected in right column is shown only for system admins. (211904 lines) Version 16.132.12:Feb 01, 2017 Code refactoring and bug fixing in parameters related to users list type. (211900 lines) Version 16.132.11:Feb 01, 2017 Help on indicators of courses. (211900 lines) Version 16.132.10:Feb 01, 2017 Help on stats about visits. (211896 lines) diff --git a/swad_layout.c b/swad_layout.c index e384d6d89..5603ade69 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -997,10 +997,13 @@ static void Lay_ShowRightColumn (void) Ban_WriteMenuWithBanners (); /***** Number of connected users in the whole platform *****/ - fprintf (Gbl.F.Out,"
"); - Con_ShowGlobalConnectedUsrs (); - fprintf (Gbl.F.Out,"
"); // Used for AJAX based refresh + if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) + { + fprintf (Gbl.F.Out,"
"); + Con_ShowGlobalConnectedUsrs (); + fprintf (Gbl.F.Out,"
"); // Used for AJAX based refresh + } /***** Number of connected users in the current course *****/ if (Gbl.CurrentCrs.Crs.CrsCod > 0) // There is a course selected