fix: setting user port permissions fails

Interface port permissions table (ports_perms) requires 'access_level' field to be NOT NULL
This commit is contained in:
Zollner Robert
2015-10-25 20:50:57 +02:00
parent a7bf0e0857
commit b52b4935ee

View File

@@ -36,7 +36,7 @@ else {
if ($vars['action'] == 'addifperm') {
if (!dbFetchCell('SELECT COUNT(*) FROM ports_perms WHERE `port_id` = ? AND `user_id` = ?', array($vars['port_id'], $vars['user_id']))) {
dbInsert(array('port_id' => $vars['port_id'], 'user_id' => $vars['user_id']), 'ports_perms');
dbInsert(array('port_id' => $vars['port_id'], 'user_id' => $vars['user_id'], 'access_level' => 0), 'ports_perms');
}
}