From: Nicolas Boisselier Date: Tue, 7 Feb 2017 15:09:06 +0000 (+0000) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=cc64c7a6652634a4e45d265dc4e0e8f328149843;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 1de12223..8f5f6d9e 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -251,11 +251,11 @@ class DbQ extends nb { } public function table_rw() { - return 1 + return (1 and ($this->perm >= self::VIEW) and !empty($this->table) and ( strpos('table view',$this->table->type()) !== false ) - ; + ); } public function table_rows($fct=null) { $this->db->limit = $this->limit();