mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 23:53:57 +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,
|
start_meta: true,
|
||||||
async start({ script }, req) {
|
async start({ script }, req) {
|
||||||
await testStandardPermission('run-shell-script', req);
|
|
||||||
|
|
||||||
const runid = crypto.randomUUID();
|
const runid = crypto.randomUUID();
|
||||||
|
|
||||||
if (script.type == 'json') {
|
if (script.type == 'json') {
|
||||||
@@ -291,6 +289,8 @@ module.exports = {
|
|||||||
return this.startCore(runid, scriptTemplate(js, false));
|
return this.startCore(runid, scriptTemplate(js, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await testStandardPermission('run-shell-script', req);
|
||||||
|
|
||||||
if (!platformInfo.allowShellScripting) {
|
if (!platformInfo.allowShellScripting) {
|
||||||
sendToAuditLog(req, {
|
sendToAuditLog(req, {
|
||||||
category: 'shell',
|
category: 'shell',
|
||||||
|
|||||||
Reference in New Issue
Block a user