From e1ba137317f3b35bdfa90b37659d9005e4c253f2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 25 Sep 2008 16:49:30 -0400 Subject: attachment: Add admin() pagespec to test if the uploading user is a wiki admin. --- doc/ikiwiki/pagespec/attachment.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/ikiwiki') 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 -- cgit v1.2.3