diff --git a/swad_announcement.c b/swad_announcement.c index bb55f740b..187e4d3cf 100644 --- a/swad_announcement.c +++ b/swad_announcement.c @@ -97,12 +97,11 @@ void Ann_ShowAllAnnouncements (void) " FROM announcements" " ORDER BY AnnCod DESC"); else if (Gbl.Usrs.Me.Logged) - /* Select only active announcements I can see */ + /* Select only announcements I can see */ sprintf (Query,"SELECT AnnCod,Status,Roles,Subject,Content" " FROM announcements" - " WHERE Status='%u' AND (Roles&%u)<>0 " + " WHERE (Roles&%u)<>0 " " ORDER BY AnnCod DESC", - (unsigned) Ann_ACTIVE_ANNOUNCEMENT, Gbl.Usrs.Me.UsrDat.Roles); // All my roles in different courses else // No user logged /* Select only active announcements for unknown users */ diff --git a/swad_changelog.h b/swad_changelog.h index 7b257784a..ebf6522f7 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -129,19 +129,18 @@ // 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: In MESSAGES > Announcements, any user should see obsolete announcements, not only system admins - /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.161.3 (2016-03-24)" +#define Log_PLATFORM_VERSION "SWAD 15.161.4 (2016-03-24)" #define CSS_FILE "swad15.160.2.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.161.4: Mar 24, 2016 In MESSAGES > Announcements, any user can see obsolete announcements, not only system admins. (196576 lines) Version 15.161.3: Mar 24, 2016 Changed icon to reset survey. (196577 lines) Copy file recycle64x64.png to icon directory