# HG changeset patch # User bsw # Date 1643884626 -3600 # Node ID de3770da915eb2858418e1fe13ebeca5dfc4bb42 # Parent a3ca8d5c8c79bd50a6d7e120b773dcd29988a402 Better handling of new draft in not correctly configured area diff -r a3ca8d5c8c79 -r de3770da915e app/main/draft/new.lua --- a/app/main/draft/new.lua Thu Feb 03 11:34:28 2022 +0100 +++ b/app/main/draft/new.lua Thu Feb 03 11:37:06 2022 +0100 @@ -22,6 +22,11 @@ end end +if #(area.allowed_policies) < 1 then + slot.put_into("error", _"Subject area configuration invalid. Please contact the administrator.") + return false +end + local polling = param.get("polling", atom.boolean) local policy_id = param.get("policy_id", atom.integer)