From e7d868fad54fa359d1051b618715c7bb1f8765f5 Mon Sep 17 00:00:00 2001 From: Torsten Stelling Date: Fri, 28 Jun 2013 16:23:10 +0200 Subject: [PATCH] changed DEBUG_USER for disabling authentication without DEBUG = true --- README.md | 4 ++++ fever/fever_api.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8307f00..9e31d21 100644 --- a/README.md +++ b/README.md @@ -65,3 +65,7 @@ v1.4 - 2013/6/28 v1.4.1 - 2013/6/28 * removed password from debug log file + +v1.4.2 - 2013/6/28 + +* changed the DEBUG_USER evaluation a little bit for disabling authentication without DEBUG = true diff --git a/fever/fever_api.php b/fever/fever_api.php index 0fdc60b..a09ed26 100755 --- a/fever/fever_api.php +++ b/fever/fever_api.php @@ -1,6 +1,6 @@ dbh->fetch_result($result, 0, "owner_uid"); } - if (self::DEBUG&&self::DEBUG_USER>0) { + if (self::DEBUG_USER>0) { $_SESSION["uid"] = self::DEBUG_USER; // always authenticate and set debug user } }