summaryrefslogtreecommitdiff
path: root/doc/ikiwiki/pagespec
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-25 16:49:30 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-25 16:49:30 -0400
commite1ba137317f3b35bdfa90b37659d9005e4c253f2 (patch)
treecd1f2cc67bc340fc05873858d87fc59b7c2e7a3a /doc/ikiwiki/pagespec
parent093e8154408d9a7517a0df1768f44ad581c70be2 (diff)
attachment: Add admin() pagespec to test if the uploading user is a wiki admin.
Diffstat (limited to 'doc/ikiwiki/pagespec')
-rw-r--r--doc/ikiwiki/pagespec/attachment.mdwn4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/ikiwiki/pagespec/attachment.mdwn b/doc/ikiwiki/pagespec/attachment.mdwn
index 6b86c510b..234fcdf02 100644
--- a/doc/ikiwiki/pagespec/attachment.mdwn
+++ b/doc/ikiwiki/pagespec/attachment.mdwn
@@ -41,6 +41,10 @@ additional tests:
Tests whether the attachment is being uploaded by a user with the
specified username. If openid is enabled, an openid can also be put here.
+* adminuser()
+
+ Tests whether the attachment is being uploded by one of the wiki admins.
+
* ip(address)
Tests whether the attacment is being uploaded from the specified IP