diff --git a/include/user.php b/include/user.php index 08e6fe3..8fe4999 100644 --- a/include/user.php +++ b/include/user.php @@ -325,10 +325,7 @@ function isSuperMaintainer($appId) function debugging() { -return true; - if(!loggedin()) - return false; - return $_SESSION['current']->getpref("debug") == "yes"; + return ((loggedin() && $_SESSION['current']->getpref("debug") == "yes") || APPDB_DEBUG == 1); }