Skip to content

Commit e313d00

Browse files
author
Till Brehm
committed
Fixed: #4674 Permission on ftp_traffic table after update to 3.1.2
1 parent a4ee1fe commit e313d00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,14 @@ public function grant_master_database_rights($verbose = false) {
672672
if(!$this->dbmaster->query($query, $value['db'] . '.dns_soa', $value['user'], $host)) {
673673
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
674674
}
675+
676+
$query = "GRANT SELECT, INSERT, UPDATE ON ?? TO ?@?";
677+
if ($verbose){
678+
echo $query ."\n";
679+
}
680+
if(!$this->dbmaster->query($query, $value['db'] . '.ftp_traffic', $value['user'], $host)) {
681+
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
682+
}
675683

676684
}
677685

0 commit comments

Comments
 (0)