X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/0b3d252ad6ff34d31d10eb82a04ab6d1e0870e4c..f2b1a918b022863c6baf010bee3e57b5f08a794f:/doc/ikiwiki/pagespec/attachment.mdwn?ds=inline diff --git a/doc/ikiwiki/pagespec/attachment.mdwn b/doc/ikiwiki/pagespec/attachment.mdwn index de7c7417f..234fcdf02 100644 --- a/doc/ikiwiki/pagespec/attachment.mdwn +++ b/doc/ikiwiki/pagespec/attachment.mdwn @@ -13,7 +13,7 @@ check all attachments for virii, something like this could be used: virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (!ispage() and maxsize(50kb))) -The regular [[ikiwiki/PageSpec]] syntax is expanded with thw following +The regular [[ikiwiki/PageSpec]] syntax is expanded with the following additional tests: * maxsize(size) @@ -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