[ewiki] Re: request (ii): everybody edit new page | inheritance |hiding pages

On Wed, 2004-03-03 at 11:39, massenmensch wrote:
> Hi there!
> 
> Today stuff mainly concerning authetication, i.e. calling esp. for Andy!
> 
> ## request (ii): everybody edit new page
> 
> As Mario wrote:
> 
> > So it turns out to be yet another bug here, if you cannot create a fresh
> > page. (I'd guess the fictional "rwxrwxr-x" access rights prevent it
> > here - there needed to be an exception for non-existent pages, so it
> > was possible to create them).
> > That "perm_rights_actions" ought to be that exception... (needs some
> > investigation)
> 
> Has one of you looked into the code where to fix that?

My perm_liveuser plugin handles it in the ['auth_perm'] hook by changing
the page namd to '[NewPage]' for the purpose of these requests.

> ## hiding pages
> 
> Andy wrote: 
> > EWIKI_PROTECTED_MODE_HIDING will hide all unauthenticated page names in
> > supporting plugins.  This does NOT hide body text links to authenticated
> > pages though I am considering steps along that line.
> 
> Hiding links to un-authed pages I find a very interesting idea. In case you 
> have code along that line, I'd be interested. At least applying it to my 
> (Name.Subname.)Menu-pages, would be very convenient so that one Menu would 
> suffice, showing each resp. user only what he's allowed to access.

I've shyed away from this because it would slow things down too much. 
If you're using my NavBar plugin or something like it you could probably
add these auth calls there.  Also, the ewiki_subpage_list function in
aview/subpages.php does handle auth calls.

-Andy


Other related posts: