Question
Hi,
Here is my problem : I have several topics, created together when the user is filling a form. I control the access of those topics in adding the exact same preference ALLOWTOPICCHANGE in them.
But i want to be able to change some things remotely (i mean from another topic) from another topic.
I could change only one user name in the ALLOWTOPICCHANGE and change also the events of this name in the rest of the page.
Actually my first idea was to create a plugin which allows to have variable which points to a value in another topic. It works but unfortunately not for access, because the access is not checked on the rendered page...
So i thought i could use INCLUDE to include the section in commom for ALLOWTOPICCHANGE in all my topics when i create them (and use my plugin for the rest) but it doesn't work either (one more time the access checking is done too early).
The last solution would be to change all the events of the user name in all the page linked (i could set the same id as a preference in those topics and search for it to know which are the topics to change) but it's not really clean... At least i was hoping for something more elegant.
Thanks for your help...
Environment
--
GuillaumeBardy - 02 Aug 2007
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.
I found a way to resolve this problem, kind of but not very happy with this solution since i need to change the code of the access.pm file.
Actually i changed the parser file of the prefs to expand my variables by calling functions from my plugin.
But i hope there is antoher solution, cause i'd prefer not to change TWiki's core code...
--
GuillaumeBardy - 03 Aug 2007
Sorry, closing this question after more than 30 days due to inactivity. Please feel free to reopen if needed.
--
PeterThoeny - 26 Sep 2007