From: Nicolas Boisselier Date: Wed, 28 Aug 2024 22:41:25 +0000 (+0200) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bcd5bd397767048465b779dea95276382c7d3e94;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 1e2eaf5e..934d5be5 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -1437,10 +1437,6 @@ EOF; } elseif ($action == 'status') { $this->page($this->table->status()+$this->table->status(['fields'])); - } elseif ($action == 'vi') { - $this->deniedUnless($this->perm >= self::READ); - $this->page($this,'vi'); - } elseif ($action == 'add') { $this->deniedUnless($this->perm >= self::WRITE); $this->page($this,'add'); @@ -1469,10 +1465,18 @@ EOF; $this->redirect_if_no_referer($this->table->base.'/'); $this->page($info); - } elseif (preg_match('/^fields=(.*)\s*$/',$action,$m)) { $this->page_table_ls($m[1]); + } elseif ($action == 'vi' + # NB 29.08.24 or $action!="" + ) { + if ($action != 'vi') $this->params['args'] = $action; + #bye($this->params); + $this->deniedUnless($this->perm >= self::READ); + $this->page($this,'vi'); + + } else { $this->notImplemented('Unknown table action'." `$action`");