From: Paul Hänsch Date: Tue, 17 May 2022 23:20:01 +0000 (+0200) Subject: user and acl awareness X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6b5c4236198e1438d6ca9d70a2893d8a2bfe0945;p=shellwiki user and acl awareness --- diff --git a/macros/attachments b/macros/attachments index 0a49075..34a7beb 100755 --- a/macros/attachments +++ b/macros/attachments @@ -1,6 +1,8 @@ #!/bin/sh . "$_EXEC/cgilite/cgilite.sh" +. "$_EXEC/cgilite/users.sh" +. "$_EXEC/acl.sh" . "$_EXEC/tools.sh" page="$1" @@ -9,6 +11,8 @@ if [ "${page#/}" = "$page" ]; then page="$(PATH "${PATH_INFO}/$page")" fi +acl_read "$page" || exit 0 + printf %s\\n '