ad hoc permissions (TODO improve)

This commit is contained in:
Jan Prochazka
2022-03-17 19:46:09 +01:00
parent d888feeaf8
commit bf1a89ee21
4 changed files with 11 additions and 1 deletions

View File

@@ -149,6 +149,10 @@ module.exports = {
start_meta: true,
async start({ script }) {
if (process.env.DISABLE_SHELL) {
return { errorMessage: 'Shell is disabled' };
}
const runid = uuidv1();
return this.startCore(runid, scriptTemplate(script, false));
},