]> git.plutz.net Git - shellwiki/blobdiff - acl.sh
gallery macro
[shellwiki] / acl.sh
diff --git a/acl.sh b/acl.sh
index d232ea0138d4f5614ef4c61fc7d97548c0e85d4b..1b25d5ec78c93d7c33006aad9a0a329f7f9f3cb4 100755 (executable)
--- a/acl.sh
+++ b/acl.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+[ "$include_acl" ] && return 0
+include_acl="$0"
+
 # ACL_OVERRIDE="${ACL_OVERRIDE:-Admin:read,write}"
 ACL_DEFAULT="${ACL_DEFAULT:-Known:read,write${BR}All:read}"
 
@@ -26,6 +29,8 @@ acl_collect(){
     [ "$path" = / ] && break
     path="${path%/*/}/"
 
+    # Do not use `mdfile` function here because of specialties
+    # in translation handler (`handlers/10_translations.sh`)
     if   [ -f "$_DATA/pages/$path/#page.md" ]; then
       pagefile="$_DATA/pages/$path/#page.md"
     elif [ -f "$_EXEC/pages/$path/#page.md" ]; then