From 29c56d9f74da988a224888b37315f3bfba645431 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Sat, 18 Apr 2020 15:43:07 +0200 Subject: [PATCH] ISOLAUTH to 0x04 (test) --- web/Obj/brisk.phh | 22 ---------------------- web/Obj/user.phh | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index bb579e5..75d07e3 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2552,28 +2552,6 @@ class Brisk if ($authenticate != FALSE) { $this->user[$idx]->code = $authenticate->code_get(); - if (0 == 1) { - // all this part is included in the db server - $this->user[$idx]->flags |= USER_FLAG_LISTAUTH; - - if (isset($cookie['CO_list'])) { - // fprintf(STDERR, "QQ: %s CO_list: [%s]\n", __FUNCTION__, $cookie['CO_list']); - if (strcmp($cookie['CO_list'], "auth") == 0) { - $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH; - $this->user[$idx]->flags |= USER_FLAG_LISTAUTH; - } - if (strcmp($cookie['CO_list'], "isolation") == 0) { - $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH; - $this->user[$idx]->flags |= USER_FLAG_ISOLAUTH; - } - else { - $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH; - } - } - } - // else { - // fprintf(STDERR, "QQ: CO_list not set flags: %x\n", __FUNCTION__, $this->user[$idx]->flags); - // } } // fprintf(STDERR, "QQ %s: flag %x\n", __FUNCTION__, $this->user[$idx]->flags); if ($ghost > -1) { diff --git a/web/Obj/user.phh b/web/Obj/user.phh index d126176..32bb71e 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -28,8 +28,8 @@ require_once("${G_base}Obj/transports.phh"); define('USER_FLAG_AUTH', 0x02); define('USER_FLAG_MAP_AUTH', 0x0c); -define('USER_FLAG_LISTAUTH', 0x04); -define('USER_FLAG_ISOLAUTH', 0x08); +// DISABLED define('USER_FLAG_LISTAUTH', 0x04); +define('USER_FLAG_ISOLAUTH', 0x04); define('USER_FLAG_DBFAILED', 0x10); -- 2.17.1