mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SYNC: fixed export from team files
This commit is contained in:
committed by
Diflow
parent
bfb35b198d
commit
1e222d806e
@@ -274,8 +274,6 @@ module.exports = {
|
||||
|
||||
start_meta: true,
|
||||
async start({ script }, req) {
|
||||
await testStandardPermission('run-shell-script', req);
|
||||
|
||||
const runid = crypto.randomUUID();
|
||||
|
||||
if (script.type == 'json') {
|
||||
@@ -291,6 +289,8 @@ module.exports = {
|
||||
return this.startCore(runid, scriptTemplate(js, false));
|
||||
}
|
||||
|
||||
await testStandardPermission('run-shell-script', req);
|
||||
|
||||
if (!platformInfo.allowShellScripting) {
|
||||
sendToAuditLog(req, {
|
||||
category: 'shell',
|
||||
|
||||
Reference in New Issue
Block a user