Plugin Approval - plugin contains {{user}} => approval required for each user
- Status
- Open
- Subject
- Plugin Approval - plugin contains {{user}} => approval required for each user
- Version
- 9.x
- Category
- Usability
- Feature
- Wiki Plugin (extends basic syntax)
- Submitted by
- aytonk
- Lastmod by
- aytonk
- Rating
- Description
A plugin requires approval. The fingerprint of the plugin is recorded, and if it is already approved, another user can use the plugin (in other words can display the page which contains the plugin).
But, if the plugin contains the fragment "/{/{user/}/}", for example
{SQL(db="LOPC_XF")} SELECT `Date`, `Subject`, `From` FROM vwMessages WHERE `To` IS NULL OR `To`="/{/{user/}/}" {SQL}then the plugin needs to be approved for each user individually.
NB - I had to put extra slashes in the above fragments to stop my username being substituted!My guess is that the username is being substituted BEFORE the fingerprint is evaluated, which means that there is a different fingerprint for each user.
I consider that this is a bug, and that the fingerprint should be evaluated BEFORE the username is substituted, thereby allowing the plugin to be approved just once.
It ought to be a one-line fix - swap round the order of two actions - but I haven't been able to work out where in the code this fix is needed.
- Importance
- 7
- Easy to solve?
- 6
- Priority
- 42
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4334
- Created
- Saturday 03 November, 2012 15:37:02 UTC
by aytonk - LastModif
- Monday 28 October, 2013 07:27:10 UTC