From 6b5c4236198e1438d6ca9d70a2893d8a2bfe0945 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 18 May 2022 01:20:01 +0200 Subject: [PATCH] user and acl awareness --- macros/attachments | 4 ++++ macros/pagelist | 1 + 2 files changed, 5 insertions(+) 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 '