]> git.plutz.net Git - shellwiki/blobdiff - macros/attachments
bugfix: filter link prefix for references in included files
[shellwiki] / macros / attachments
index 0a49075a74afaa001de2eb0b1daeb118ce5c11fb..aecacfb7397e5b9e17c1d9c9e660d6ba4d37ca86 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 . "$_EXEC/cgilite/cgilite.sh"
+. "$_EXEC/acl.sh"
 . "$_EXEC/tools.sh"
 
 page="$1"
@@ -9,6 +10,8 @@ if [ "${page#/}" = "$page" ]; then
   page="$(PATH "${PATH_INFO}/$page")"
 fi
 
+acl_read "$page" || exit 0
+
 printf %s\\n '<ul class="macro attachment list">'
 
 for file in "$_EXEC/pages/$page/#attachments"/* "$_DATA/pages/$page/#attachments"/*; do