liquid_feedback_frontend

changeset 1824:de3770da915e

Better handling of new draft in not correctly configured area
author bsw
date Thu Feb 03 11:37:06 2022 +0100 (2022-02-03)
parents a3ca8d5c8c79
children 7b04f14c6d0a
files app/main/draft/new.lua
line diff
     1.1 --- a/app/main/draft/new.lua	Thu Feb 03 11:34:28 2022 +0100
     1.2 +++ b/app/main/draft/new.lua	Thu Feb 03 11:37:06 2022 +0100
     1.3 @@ -22,6 +22,11 @@
     1.4    end
     1.5  end
     1.6  
     1.7 +if #(area.allowed_policies) < 1 then
     1.8 +  slot.put_into("error", _"Subject area configuration invalid. Please contact the administrator.")
     1.9 +  return false
    1.10 +end
    1.11 +
    1.12  local polling = param.get("polling", atom.boolean)
    1.13  
    1.14  local policy_id = param.get("policy_id", atom.integer)

Impressum / About Us