fix: allow superadmin to run inline scripts in repo they are not part of

This commit is contained in:
Ruben Fiszel
2023-10-21 14:48:51 +02:00
parent 7dbdb8bb9c
commit cef2949497

View File

@@ -245,7 +245,7 @@ pub async fn handle_python_job(
.take(script_path_splitted.clone().count() - 1)
.join("/")
.replace("-", "_")
.replace('@', '.');
.replace("@", ".");
let dirs = if dirs_full.len() > 0 {
dirs_full
.strip_prefix("/")