From 405324e13eb8124602f8e3651b0903afad2365fe Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 27 Mar 2012 01:46:10 +0000 Subject: [PATCH] adjusted cgi scripts for renamed permission-file svn path=/trunk/; revision=38 --- write/introedit.cgi | 2 +- write/lock.cgi | 2 +- write/taskmeta.cgi | 2 +- write/wikiedit.cgi | 2 +- write/wikimeta.cgi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/write/introedit.cgi b/write/introedit.cgi index d37af6f..7d0887e 100755 --- a/write/introedit.cgi +++ b/write/introedit.cgi @@ -16,7 +16,7 @@ # along with Busy. If not, see . [ "$HTTPS" = "on" ] && proto=https || proto=http -. ../auth/acl.sh +. ../auth/permissions.sh info="$(egrep -o '(^|&)i=([0-9]{10}_[0-9]{3}|intro|news)(&|$)' <<<"${QUERY_STRING}" |sed 's:&::g;s:i=::')" diff --git a/write/lock.cgi b/write/lock.cgi index 3c2866d..33989b6 100755 --- a/write/lock.cgi +++ b/write/lock.cgi @@ -16,7 +16,7 @@ # along with Busy. If not, see . [ "$HTTPS" = "on" ] && proto=https || proto=http -. ../auth/acl.sh +. ../auth/permissions.sh $ACL_WIKIEDIT || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n" $ACL_WIKIEDIT || exit 0 diff --git a/write/taskmeta.cgi b/write/taskmeta.cgi index b5c22f4..7b09551 100755 --- a/write/taskmeta.cgi +++ b/write/taskmeta.cgi @@ -18,7 +18,7 @@ #info="$(egrep -o '(^|&)i=[0-9]{10}_[0-9]{3}(&|$)' <<<"${QUERY_STRING}" |tr -d '&i=')" [ "$HTTPS" = "on" ] && PROTO=https || proto=http -. ../auth/acl.sh +. ../auth/permissions.sh $ACL_CREATETASK || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n" $ACL_CREATETASK || exit 0 diff --git a/write/wikiedit.cgi b/write/wikiedit.cgi index 5a3471e..fc437ee 100755 --- a/write/wikiedit.cgi +++ b/write/wikiedit.cgi @@ -16,7 +16,7 @@ # along with Busy. If not, see . [ "$HTTPS" = "on" ] && proto=https || proto=http -. ../auth/acl.sh +. ../auth/permissions.sh $ACL_WIKIEDIT || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n" $ACL_WIKIEDIT || exit 0 diff --git a/write/wikimeta.cgi b/write/wikimeta.cgi index e032d91..af72eab 100755 --- a/write/wikimeta.cgi +++ b/write/wikimeta.cgi @@ -16,7 +16,7 @@ # along with Busy. If not, see . [ "$HTTPS" = "on" ] && proto=https || proto=http -. ../auth/acl.sh +. ../auth/permissions.sh env >../debug $ACL_WIKIEDIT || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n" $ACL_WIKIEDIT || exit 0 -- 2.39.2