On Mon, Jul 16, 2012 at 1:04 AM, tamouse mailing lists <[email protected]> wrote: > On Sun, Jul 15, 2012 at 4:28 PM, Alex Eftimiades > <[email protected]> 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 protection. 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. -Peter _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
