Question
I have a page which works as described in this topic:
SearchBookTitles
Now I want to restrict the creation of new pages based on the template. Only a certain group of users should be able to do this.
I tried setting 'ALLOWTOPICCHANGE' on the template, but that doesn't work. So is it possible to do this and, if it is, how can I do this?
Environment
--
PieterVanDerSpek - 14 Oct 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Doesn't anyone have a clue on how to this?
--
PieterVanDerSpek - 19 Oct 2005
Yes. Split the topic into two. The "listing" is read-only. The ability to create is on another topic and conditionally included.
--
AntonAylward - 19 Oct 2005
A variation on Anton's suggestion:
- The index topic SearchBookTitles is not restricted
- The "create new entry" topic SearchBookTitlesAddNew has a ALLOWTOPICVIEW, set to the group of people who are allowed to create new entries
--
PeterThoeny - 20 Oct 2005
There is a way around both suggestions of course. Someone could just create a new topic titled "BookTyadayadayada" and it would show up in the listing.
There is probably nothing to prevent this?
--
PieterVanDerSpek - 20 Oct 2005
If a user creates a BookTyadayadayada it will not show up in the index topic. This is because the SEARCH in the index topic expects content to be based on the
BookTemplate topic.
A user
could go to to template topic first, copy its content, create a new topic and replace the content with the template topic text. In this highly unlikely case the topic would show up in the index topic.
If you really need to lock down the application, you could wrte protect the whole web where the application is. I strongly suggest
not to do that since this will hinder collaboration. See
TWikiAccessControl
--
PeterThoeny - 21 Oct 2005
Thanks for your answer Peter. Protecting the "create new entry"-topic is sufficient in our case.
However, I can imagine that it will not be sufficient for others. With the answers in this topic they know what can and cannot be done using TWiki.
--
PieterVanDerSpek - 21 Oct 2005
This may be too old to answer now but I solved it using ALLOWTOPICVIEW in template.
--
ChengappaCB - 2009-05-13