Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#477 Can't set acls for non-viewable pages

User_Authentication
open
Reini Urban
4
2012-10-11
2005-05-23
Thomas Leonard
No

Having got a new wiki set up, I decided to try the
access control system. I turned off the first checkbox
at the top (viewable by all).

Once this was done, not only could I not see the page,
but I couldn't make it viewable again!

Going to the setacl page manually (there was no link; I
see a TODO in the source) showed the settings, but the
page wasn't listed at the bottom (but it was listed at
the top). Trying to change the setting had no effect.

It seems that the problem is in PageList.php:669 in
_renderPageRow():

    // enforce view permission
    if (!mayAccessPage('view',

$page_handle->getName()))
return;

So, if a page isn't viewable, then you can't make it
viewable?

Is it safe to comment these lines out? That enabled me
to fix the permissions problem. Perhaps admins should
always be able to view pages?

Discussion

  • Reini Urban
    Reini Urban
    2005-06-08

    Logged In: YES
    user_id=13755

    Good point. For Admins this PageList view check should be
    overridden indeed.
    Maybe they should be specially marked in the list then...