]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 11 Jan 2018 02:36:30 +0000 (02:36 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 11 Jan 2018 02:36:30 +0000 (02:36 +0000)
www/dbq/dbq.php

index 87fc363a6cd1de1657a72ff697dc54e33b0ad613..9925966b28e95801492626c4853c28645525cfdb 100644 (file)
@@ -1171,14 +1171,17 @@ EOF;
                        $this->page($this->db,'status');
 
                } elseif ($action == 'databases') {
+                       $this->deniedUnless($this->perm >= self::ADMIN);
                        $this->page($this->db,'databases');
 
                } elseif ($action == 'csv') {
+                       $this->deniedUnless($this->perm >= self::ADMIN);
                        header('Content-type: text/plain');
                        $this->db->dump2csv();
                        exit;
 
                } elseif ($action == 'dump') {
+                       $this->deniedUnless($this->perm >= self::ADMIN);
                        header('Content-type: text/plain');
                        $this->db->dump($this->params['action']);
                        exit;