-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I want to add a 'Comments' page to my Wiki where anonymous users can
edit the page; I thought I could do it with the code on the bottom,
but when I hit the Comments-page as anonymous, I only have the usual
anonymous-menu. Btw., I'm using SmallWiki on Squeak.
Regards, Markus
| anonymousRole s commentRole cpage |
s _ SWKom allInstances first.
commentRole _ SWBasicRole name: 'anonymous'.
commentRole add: SWPage permissionEdit.
commentRole add: SWPage permissionAdd.
anonymousRole := s roles detect: [ :each |
~ each name = 'anonymous' ].
commentRole permissions addAll: anonymousRole permissions.
cpage _ (s root children detect: [ :each | each id = 'comments' ]).
cpage roles: (OrderedCollection with: commentRole)
- --
http://reauktion.de/archer/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
iD8DBQFCT9AIRiRItLFyH5gRAgNTAKCJDDEZJ478ZKmIyJ0x9X2Nl50glACcCupD
vp6IkAWRAanbfEXWU1ubXXg=
=1MWc
-----END PGP SIGNATURE-----