From 628e8506e606af51e3f46bb75efca03c21f2e6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 30 Jan 2017 19:12:35 +0100 Subject: [PATCH] Version 16.132.5 --- swad_changelog.h | 3 ++- swad_password.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 45afa038d..d1883d355 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -191,13 +191,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.132.4 (2017-01-30)" +#define Log_PLATFORM_VERSION "SWAD 16.132.5 (2017-01-30)" #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.5: Jan 30, 2017 Fixed bug in checking consent on dangerous action. (211888 lines) Version 16.132.4: Jan 30, 2017 Changes in connected users. (211887 lines) Version 16.132.3: Jan 30, 2017 Code refactoring in connected users. (211881 lines) Version 16.132.2: Jan 30, 2017 Fixed bug in file browser. (211911 lines) diff --git a/swad_password.c b/swad_password.c index 85dd255c5..8e4d87d13 100644 --- a/swad_password.c +++ b/swad_password.c @@ -926,7 +926,7 @@ bool Pwd_GetConfirmationOnDangerousAction (void) char EncryptedPassword[Cry_LENGTH_ENCRYPTED_STR_SHA512_BASE64 + 1]; /***** Get if consent has been done *****/ - if (Par_GetParToBool ("Consent")) + if (!Par_GetParToBool ("Consent")) { Lay_ShowAlert (Lay_WARNING,Txt_You_have_not_confirmed_the_action); return false;