[pmwiki-users] CSS in Wiki Pages: new stylepage.php
Patrick R. Michaud
pmichaud at pobox.com
Tue Aug 29 12:22:55 CDT 2006
On Tue, Aug 29, 2006 at 12:18:16PM -0400, Henrik Bechmann wrote:
> General question:
>
> Where is the use of the "@" prefix documented?
Primarily in AuthUser -- it's used to denote authorization
groups, such as @editors and @admins.
However, the notation is also used for a few special-purpose
authorizations (available even if AuthUser isn't loaded or used):
@nopass -- always authorized (no password required, even if
a group or site password exists)
@_site_edit -- same authorization as site edit passwords
@_site_read -- same authorization as site read passwords
@_site_admin -- same authorization as site admin passwords
etc.
There's also a @lock convention, which says that a particular
action is locked to all access except for the admin password.
(It's just a convention; i.e., @lock is an authorization group
that just happens to have no members.)
I think these are described on the PasswordsAdmin page;
@nopass in the text and the others as a frequently asked
question at the bottom.
Pm
> >> On 8/29/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >>
> >> On Tue, Aug 29, 2006 at 10:35:13AM -0500, Jon Haupt wrote:
> >> > The read password for Site.StyleSheet is set to nopass.
> >>
> >> The stylepage.php recipe doesn't know how to deal with "nopass",
> >> it just knows that there's a read password of some sort on the
> >> page so it refuses to cache it.
> >>
> >> Ah, makes sense. This is a production site which is fairly
> >> restrictively
> >> controlled--i.e. there is a Site group read password and only those
> >> pages
> >> which are necessary are made readable to the public. My other site
> >> doesn't have a Site group password.
> >>
> >
> >
> >In stylepage.php, change line 88 from
> >
> > if ($stylepage['=passwd']['read']) {
> >
> >to
> >
> > if ($stylepage['=passwd']['read']
> > && $stylepage['=passwd']['read'] != '@nopass') {
> >
> >And be sure to use '@nopass' for the read password in
> >Site.StylePage instead of 'nopass'.
> >
> >Pm
> >
> >
> >_______________________________________________
> >pmwiki-users mailing list
> >pmwiki-users at pmichaud.com
> >http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >
> >
>
> --
>
> Henrik Bechmann
> www.osscommons.ca
> www.bechmannsoftware.com
> Webmaster, www.dufferinpark.ca
>
>
More information about the pmwiki-users
mailing list