mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 06:06:01 +00:00
connections per role
This commit is contained in:
@@ -71,6 +71,7 @@ module.exports = {
|
||||
{
|
||||
login: 'superadmin',
|
||||
permissions: await storage.loadSuperadminPermissions(),
|
||||
roleId: -3,
|
||||
},
|
||||
getTokenSecret(),
|
||||
{
|
||||
|
||||
@@ -201,7 +201,7 @@ module.exports = {
|
||||
async list(_params, req) {
|
||||
const storage = require('./storage');
|
||||
|
||||
const storageConnections = await storage.connections();
|
||||
const storageConnections = await storage.connections(req);
|
||||
if (storageConnections) {
|
||||
return storageConnections;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
connections_meta: true,
|
||||
async connections() {
|
||||
async connections(req) {
|
||||
return null;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user