[pmwiki-users] recognizing read protection

Tegan Dowling tmdowling at gmail.com
Thu Jun 7 11:55:42 CDT 2007


On 6/7/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>
> On Thu, Jun 07, 2007 at 11:38:10AM -0400, Ben Wilson wrote:
> > Forgive me for not giving enough information, but I believe there's a
> > Cookbook recipe that allows you to list pages with their permissions.
>
> Starting with 2.2.0-beta52 it's in the core, at the Site.AuthList page.
> (This may change to SiteAdmin.AuthList soon, however.)
>
> Pm
>
>
>
> > On 6/7/07, Jabba Laci <jabba.laci at gmail.com> wrote:
> > > Hi,
> > >
> > > I use PmWiki to manage my personal homepage. Some pages that I don't
> > > want to share with everyone are password protected. The problem is
> > > that as more and more pages are created, it is more and more difficult
> > > to keep in mind which pages are protected.
> > > I would like to do the following. When a page is read protected, I
> > > want to print some warning message on the top of the page. This way it
> > > would be very easy to notice if I forgot to protect a private page.
> > > So my question is: how to ask whether the current page is read
> > > protected or not? I would imagine something like this:
> > > (:if isPageReadProtected:)
> > > (: printPageReadProtectedMessage :)
> > > (:endif:)


Does the new AuthList provide a mechanism for displaying whether a page is
read-protected (or has any other attributes set) on that page?  So one can
do

(:if hasattribute read:)
Read-protected message
(:ifend:)

?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070607/ad783d0d/attachment.html 


More information about the pmwiki-users mailing list