make safe the api calls with potential for demo site damage

This commit is contained in:
Oliver Gorwits
2023-06-05 17:28:34 +01:00
parent 65a908dcd3
commit 195f98dff1
3 changed files with 4 additions and 3 deletions

View File

@@ -324,7 +324,7 @@ sub jq_insert {
$jobs = [$jobs] if ref [] ne ref $jobs;
# bit of a hack for heroku hosting to avoid DB overload
return true if setting('defanged_admin') eq 'false_admin';
return true if setting('defanged_admin') ne 'admin';
my $happy = false;
try {