Pass group_enabled boolean to web interface and show if entry was disabled due to group setting. Although the current web interface does not support group-based management, this may aid in debugging if users interact the database directly.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-06-16 20:08:24 +02:00
parent 91c9865b70
commit 5f28a3816d
2 changed files with 4 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ $db = SQLite3_connect($GRAVITYDB);
function getTableContent($listname) {
global $db;
$entries = array();
$results = $db->query("SELECT * FROM $listname");
$results = $db->query("SELECT a.*,b.enabled AS group_enabled FROM $listname a INNER JOIN domain_groups b ON b.id = a.group_id");
while($results !== false && $res = $results->fetchArray(SQLITE3_ASSOC))
{