[pmwiki-users] How can I make an uploaded file expire?

Neil Herber (nospam) nospam at eton.ca
Wed Feb 4 10:58:52 CST 2009

On 2009-01-23 9:50 AM, Neil Herber (nospam) wrote:
> On 2009-01-23 9:23 AM, Patrick R. Michaud wrote:
>> On Fri, Jan 23, 2009 at 01:21:51AM -0500, Neil Herber (nospam) wrote:
>>> If I protected the group where the download lived and had an 
>>> authorization group (@limited) controlling access to the pages, could I 
>>> make the "@limited" authorization group *automatically* disappear after 
>>> a certain date?
>> Do you want the authorization group itself to disappear, or
>> do you simply want it to disappear from the page's/group's
>> set of authorizations?
> Excellent question! I think it would be workable either way, so the 
> easiest to implement might be the way to go.
> The behaviour I want is:
> - a "downloads" group with a home page showing attached files
> - restrict access to "downloads" via authorization groups
> - have an authorization expire, so members can't get to "downloads"
> Thinking out loud here, it would be better if the authorization group 
> disappeared. That way I could have, for example, one group with a one 
> week limit and another group with a four week limit. Or ...
> Does the AuthUser page honour conditionals?
> (:if date 2009-01-01..2009-01-07:)carol: @downloads (:ifend:)
> (:if date 2009-01-01..2009-01-30:)bob: @downloads (:ifend:)

Answering my own question (took a while because I was upgrading 5 PmWiki 
sites to 2.2.0), the following *does* work on SiteAdmin.AuthUser:

(:if date 2009-02-01..2009-02-28:)
@nameofauthgroup: *

Note that it *does not* work "in line", like so:

(:if date 2009-02-01..2009-02-28:)@nameofauthgroup: *(:ifend:)

Neil Herber

More information about the pmwiki-users mailing list