From dc0e7874cd75f3b52150734073f2ffebac133f88 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Jul 2017 16:29:02 +0100 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 64d61ab2..ecf9834c 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -11,14 +11,14 @@ class DbQ extends nb { const ADMIN = 9; const DELETE = 4; const WRITE = 3; - const VIEW = 1; + const READ = 1; public $perm = self::ADMIN; public $perms = [ # keys in lowercase !!!! 'admin' => self::ADMIN, 'delete' => self::DELETE, 'write' => self::WRITE, -# NB 27.07.17 'view' => self::VIEW, - 'read' => self::VIEW, +# NB 27.07.17 'view' => self::READ, + 'read' => self::READ, ]; public $title = 'Dbq'; @@ -280,7 +280,7 @@ class DbQ extends nb { public function table_rw() { return (1 - and ($this->perm >= self::VIEW) + and ($this->perm >= self::READ) and !empty($this->table) and ( strpos('table view',$this->table->type()) !== false ) ); @@ -478,7 +478,7 @@ class DbQ extends nb { if (empty($_SERVER['SERVER_PROTOCOL'])) $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.0'; header($_SERVER['SERVER_PROTOCOL'].' '.$msg); echo "$msg\n"; - if (!empty($admin_msg) and $this->perm >= self::VIEW) echo "$admin_msg\n"; + if (!empty($admin_msg) and $this->perm >= self::READ) echo "$admin_msg\n"; exit; } -- 2.47.3