On Wed, Jan 25, 2006 at 06:07:18PM +0000, Dave Howorth wrote: > I'm still stumped on this. I've looked at Kwiki::PagePrivacy.pm and > don't understand how it works. I put prints into every sub and see them > being called when I'm in the admin view, but never from the normal view. > Is there anything that would help me understand how this module works? > How does it stop people viewing private pages?
Hi, I think I have this working; my setup is as follows: * "root" wiki view lives in .../wiki (this has no "edit page" or "new" functionality and private pages should not be accessible) * the admin view lives in .../wiki/admin (editing functions are available here, as are the controls for setting pages' privacy level) .../wiki/plugins contains, amongst other entries: Kwiki::PagePrivacy .../wiki/config.yaml contains nothing related to PagePrivacy.pm. .../wiki/admin/plugins contains, amongst other entries: Kwiki::PagePrivacy Kwiki::Edit Kwiki::NewPage (etc) .../wiki/admin/config.yaml is a symlink to ../config.yaml .../wiki/admin/config2.yaml contains: privacy_group: admin The admin directory is protected by a .htaccess file. This appears to do what I want. How does it compare to your setup? When testing this, I had some trouble with my browser caching old pages; it's worth doing shift-control-reload (or whatever) after you've made a change to be sure you're seeing the latest view of the wiki. Also don't forget to run "kwiki -update" when you've made changes. Good luck, Dave
