X-Git-Url: https://git.hcoop.net/bpt/portal.git/blobdiff_plain/b6e2318111ec35ec2015ddf17679dd31270d77cb..93f77ca7c0fbfefe5eaf130c360cd1d112f40d52:/poll.mlt
diff --git a/poll.mlt b/poll.mlt
index 3abe588..ad8e152 100644
--- a/poll.mlt
+++ b/poll.mlt
@@ -72,9 +72,9 @@ elseif $"cmd" = "add" then
val votes = Web.stoi ($"votes");
if title = "" then
%>
Your poll must have a title.
<%
- elseif not (Poll.dateGeNow starts) then
+ elseif not pollAdmin and not (Poll.dateGeNow starts) then
%>That start date is in the past!
<%
- elseif not (Poll.dateLe (starts, ends)) then
+ elseif not pollAdmin and not (Poll.dateLe (starts, ends)) then
%>The end date comes before the start date!
<%
elseif votes <= 0 then
%>You must specify a positive number of votes per person.
<%
@@ -114,9 +114,9 @@ elseif $"mod" <> "" then
val votes = Web.stoi ($"votes");
if title = "" then
%>Your poll must have a title.
<%
- elseif not (Poll.dateGeNow starts) then
+ elseif not pollAdmin and not (Poll.dateGeNow starts) then
%>That start date is in the past!
<%
- elseif not (Poll.dateLe (starts, ends)) then
+ elseif not pollAdmin and not (Poll.dateLe (starts, ends)) then
%>The end date comes before the start date!
<%
elseif votes <= 0 then
%>You must specify a positive number of votes per person.
<%