From 9507e9f48b30b33a64dc7395d1eb7a038216815b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 12 Jun 2016 14:03:33 +0200 Subject: [PATCH] Version 15.223.3 --- swad_changelog.h | 6 +++--- swad_forum.c | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 41cd58f52..85a5e45a8 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -113,9 +113,7 @@ // TODO: Go to forum post (or at least to forum thread) from social timeline and notifications? // TODO: Width of column for data in notifications is too short // TODO: Change size of DegTypName in table deg_types from VARCHAR(32) TO VARCHAR(255) -// TODO: If a follower follows a user whose profile is no longer visible ==> put icon to unfollow in list of followed // TODO: Insert "http://" to WWW when WWW does not start with "*://" -// TODO: Icon to the left in list of forums is not correct when scope is system // TODO: Move info about number of files to bottom of file browsers // 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: Filtering email addresses --> an email address can not finish in "." @@ -124,6 +122,7 @@ // TODO: Messages in msg_content_deleted older than a certain time should be deleted to ensure the protection of personal data // TODO: Request confirmation to remove user's photo // TODO: FIX BUG: A teacher uploads a document in course documents zone, then he/she unregister from course, then he/she search for his/her documents, a document is shown in results but he/she can not view it +// TODO: If a follower follows a user whose profile is no longer visible ==> put icon to unfollow in list of followed // TODO: Modify WS function getUsers changing: userRole to indicate all users, and a new parameter filter (search string (name, @nickname, mail)) to restring number of users // TODO: Add a new WS function to count the nunmber of users to return in call to function getUsers @@ -132,13 +131,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.223.2 (2016-06-12)" +#define Log_PLATFORM_VERSION "SWAD 15.223.3 (2016-06-12)" #define CSS_FILE "swad15.218.css" #define JS_FILE "swad15.216.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.223.3: Jun 12, 2016 Fixed layout of list of forums. (202282 lines) Version 15.223.2: Jun 12, 2016 Fixed bug in results of search of students. (202277 lines) Version 15.223.1: Jun 12, 2016 Show only users to follow with first name and surname 1. (202276 lines) Version 15.223: Jun 12, 2016 New forms to change course configuration. (202268 lines) diff --git a/swad_forum.c b/swad_forum.c index d0f96db13..f44065469 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -1741,10 +1741,15 @@ void For_ShowForumList (void) switch (Gbl.Forum.WhichForums) { case For_ONLY_CURRENT_FORUMS: - if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM) - ICanSeeInsForum = true; + if (Gbl.CurrentIns.Ins.InsCod > 0) + { + if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM) + ICanSeeInsForum = true; + else + ICanSeeInsForum = Usr_CheckIfIBelongToIns (Gbl.CurrentIns.Ins.InsCod); + } else - ICanSeeInsForum = Usr_CheckIfIBelongToIns (Gbl.CurrentIns.Ins.InsCod); + ICanSeeInsForum = false; /***** Links to forums about the platform *****/ For_WriteLinksToPlatformForums (!ICanSeeInsForum,IsLastItemInLevel);