SYNC: fixed export from team files

This commit is contained in:
SPRINX0\prochazka
2025-10-22 12:39:54 +02:00
committed by Diflow
parent bfb35b198d
commit 1e222d806e

View File

@@ -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',