[pmwiki-users] Password protect page with editors' password action
pbowers at pobox.com
Mon Jul 16 00:07:30 CDT 2012
On Mon, Jul 16, 2012 at 1:04 AM, tamouse mailing lists
<tamouse.lists at gmail.com> wrote:
> On Sun, Jul 15, 2012 at 4:28 PM, Alex Eftimiades
> <alexeftimiades at gmail.com> wrote:
>> Problem solved. I was logged in as an editor. I needed to be logged in as
>> attr. I changed that and will add an if (CondAuth...) around the inside of
>> the handler.
> Isn't this going to be a general issue for your editors if they can't
> set attributes as well? It would be an annoyance to have to switch
> logins when you want to protect or unprotect a page. Or am I
> misunderstanding this?
I suppose there's nothing "magic" about requiring attr authorization
to change a password -- I just chose that authorization by convention.
It would make better sense to allow editors to accomplish this
You can do this simply by changing to:
$HandleAuth['switchauth'] = 'edit';
And you'll want to change the (:if auth attr:) to (:if auth edit:) in
Site.PageActions as well.
Note that no if (CondAuth...) is necessary -- pmwiki handles the
authorization very nicely itself.
More information about the pmwiki-users