[dev] wicked permissions, attempt #2

Ben Chavet ben at chavet.net
Sun Nov 28 14:38:22 PST 2004


Ok, here's my next attempt at fixing wicked's permissions.  Jason, you weren't
kidding when you said it was more complicated than what I originally submitted
:)

I've tested this patch as thoroughly as I can possibly think of.
Feedback/Suggestions welcome.

Here's the rundown:

lib/Page/StandardPage.php now checks if 'wicked' and 'wicked:pages' exist.  If
not, they are created with reasonable defaults.

AttachedFiles, BackLinks, EditPage, LikePages, MergeOrRename all check 
& return
the permissions of the referring page.

I created a new permission branch, 'wicked:system', to contain AllPages,
LeastPopular, MostPopular, PageSearch, RecentChanges, and TitleSearch.  I did
this because I didn't really feel that these belong in the 'wicked:pages'
branch.  Granted, they are still pages, but they each serve a special purpose.

lib/api.php has been updated to reflect the 'wicked:system' permission branch.

I made this diff using 'cvs -q diff -u' in /wicked to cut down on number of
attachments.  If this doesn't work, I can redo it with individual diffs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perms.patch
Type: text/x-patch
Size: 16890 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20041128/10744d6c/perms.bin


More information about the dev mailing list