[tw] Re: [TW5] is ther a way to restrict where a macro is called from?

2017-10-04 Thread PMario
On Tuesday, October 3, 2017 at 11:51:25 PM UTC+2, myst...@gmail.com wrote: > > Thanks for the responses. I decided to go with the currentTiddler method, > and since this macro is in javascript, > some poking around in the tiddlywiki source shows that i can reference > this.getvariable("currentTi

[tw] Re: [TW5] is ther a way to restrict where a macro is called from?

2017-10-03 Thread mystikite
Thanks for the responses. I decided to go with the currentTiddler method, and since this macro is in javascript, some poking around in the tiddlywiki source shows that i can reference this.getvariable("currentTiddler") from inside the macro. While i can't make this method secure against a deter

[tw] Re: [TW5] is ther a way to restrict where a macro is called from?

2017-10-03 Thread Jed Carty
You can check the currentTiddler against an approved list of places, but anything you make can be modified by other people. If you make javascript macros than you can make it harder to get around but there isn't any way to prevent someone who knows a bit about what they are doing from getting a