Several handlers in Plugins don't have access to the meta object. This makes checking permissions a real PITA, as the topic has to be re-read.
There's a workaround, and that's to use $context->{can_render_meta}, but that's a hack at best, and unreliable.
The right solution is to add $meta into the right places in the following handlers.
- 'beforeCommonTagsHandler',
- 'commonTagsHandler',
- 'afterCommonTagsHandler',
- 'afterEditHandler',
Proposed for 4.2,
TWiki:Codev.PassMetaToHandlers
--
TWiki:Main/CrawfordCurrie
- 16 Mar 2007
Checked in, but revertable until a release meeting agrees/times out.
CC