X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=auth%2Facl.sh;fp=auth%2Facl.sh;h=10492dd585835e900b454b741ab0564997a471e9;hb=7d60f1ac8a996344f14edfcf751d965818df43d7;hp=0000000000000000000000000000000000000000;hpb=7799a762ca2dfbd022f7f8425fc207c8211e3ef7;p=busy diff --git a/auth/acl.sh b/auth/acl.sh new file mode 100755 index 0000000..10492dd --- /dev/null +++ b/auth/acl.sh @@ -0,0 +1,11 @@ +ANL_EDITINTRO="paul" +ANL_ADDNEWS="paul" +ANL_EDITNEWS="paul" +ANL_CREATETASK=".*" + +[ -n "$REMOTE_USER" ] && USER="$REMOTE_USER" || USER="#NONE#" +egrep -xq "$ANL_EDITINTRO" <<<"$USER" && ACL_EDITINTRO=true +egrep -xq "$ANL_ADDNEWS" <<<"$USER" && ACL_ADDNEWS=true +egrep -xq "$ANL_EDITNEWS" <<<"$USER" && ACL_EDITNEWS=true +egrep -xq "$ANL_CREATETASK" <<<"$USER" && ACL_CREATETASK=true +