I'm not sure if it's a Bug, but the TWiki
never worked by this way and it's not god. A lot of collaborative Web Sites need to be restricted. And some institutional Web Sites using TWiki uses the Main Web for the Main Site area. (like
ITI
)
If you decide to do the TWiki work by this way... Please, we need an way to crate new users in an blocked Main Web.
We are using the TWiki to mantain the
SaferNet Brasil
web site, it's colaborative área and more...
But, we have an big problem. We worked on the
HotLine-BR
(it fight against pedofily) some time ago and we use TWiki too. It had an open collaborative area and one day, an not cool guy, put pedofily links on his won topic. So... We decide to restrict the TWiki for edition for an TWikiGroup and the Main area need to be restricted too.
Now on SaferNet Brasil we are using the TWiki Dackar (BEAUTIFUL!) but it have an big problem with the Main Web opened for people people who act against the human rights.
(unhappyly this is really truth)
--
AH
Is your Main web open to change by the TWikiRegistrationAgent?
--
MC
In
NewUserTemplate, remember to uncomment the * #Set ALLOWTOPICCHANGE as well, to allow new users to actually be able to change their own user topics in this kind of setting.
--
SP
Just for the record:
Wikipedia:Pedophilia
.
About the problem itself, I guess it could be documented how to restrict the Main web while allowing user to register, since cases like SeferNet's can be common.
--
AT
If we set restrictions on write access to Main web the registration process fails when the user topic is to be created. There is a call to saveTopic in $twikiLibDir/TWiki/UI/Register.pm:835, made in context of the new user. This leads to an error, cause of write restrictions. If the $user variable is initialized as $twikiRegistrationAgent (line 830) then we solve the problem. I applied this solution and the registration worked (with the write restrictions in the Main web).
Refer to the patch attached.
--
TWiki:Main.GilmarSantosJr
Sounds fair enough to let the TWikiRegistrationAgent both write to TWikiUsers and create the user topic rev 1. - A bit unsure if this may break existing testcases that verifies the username, needs a check.
SVN 8565 - thanks, Gilmar!
--
SP