mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SYNC: Fixed DbGate Web UI Connections do not display 'Databases' #1199
This commit is contained in:
committed by
Diflow
parent
a5a5517555
commit
096ad97a73
@@ -619,7 +619,7 @@ module.exports = {
|
||||
message: `Loaded database structure for ${database}`,
|
||||
});
|
||||
|
||||
if (!hasPermission(`all-tables`, loadedPermissions)) {
|
||||
if (process.env.STORAGE_DATABASE && !hasPermission(`all-tables`, loadedPermissions)) {
|
||||
// filter databases by permissions
|
||||
const tablePermissions = await loadTablePermissionsFromRequest(req);
|
||||
const databasePermissions = await loadDatabasePermissionsFromRequest(req);
|
||||
|
||||
@@ -46,7 +46,7 @@ module.exports = {
|
||||
existing.status = status;
|
||||
socket.emitChanged(`server-status-changed`);
|
||||
},
|
||||
handle_ping() { },
|
||||
handle_ping() {},
|
||||
handle_response(conid, { msgid, ...response }) {
|
||||
const [resolve, reject] = this.requests[msgid];
|
||||
resolve(response);
|
||||
@@ -166,7 +166,7 @@ module.exports = {
|
||||
message: `Loaded databases for connection`,
|
||||
});
|
||||
|
||||
if (!hasPermission(`all-databases`, loadedPermissions)) {
|
||||
if (process.env.STORAGE_DATABASE && !hasPermission(`all-databases`, loadedPermissions)) {
|
||||
// filter databases by permissions
|
||||
const databasePermissions = await loadDatabasePermissionsFromRequest(req);
|
||||
const res = [];
|
||||
|
||||
Reference in New Issue
Block a user