[tw5] Re: Sample code: Multi-user TiddlyWiki on nodejs: locking other users' tiddlers

G’day,

Thanks! TT has me feeling the same way as many people talking to me all at the same time. I have no idea how else to explain it.

I think I gave this thread a lousy title.

In the TiddlyWiki I have setup, we are three users, a few tiddlers created by each of us.

When I sign in (just basic authentication), I can edit/delete the tiddlers I’ve created, but can only view the tiddlers the other users created. So each of us can view all tiddlers, but just edit/delete the tiddlers we’ve created.

Say user A has Tiddler A, I can’t edit it. But if I want to contribute to it, I can create a tiddler linked to Tiddler A (say “Tiddler A.1”, either linked to Tiddler A, or tagged “Tiddler A”, or something like that) to enhance the information in Tiddler A.

So this circumvents the problem of two people trying to edit the same tiddler at the same time.

It isn’t meant to be any kind of robust security mechanism. It just makes it more difficult to edit/delete what you haven’t created.

We’d need a modified “view tiddler template” to show show additional information related to Tiddler A, to show additional stuff added by other contributors via added and linked tiddlers.

A little bit like how one can share a Google Doc with others, giving them ability to comment on the document but not editing it.

Something like that.

Proof is in the pudding, so I can report back on any hiccups, but it is looking pretty good so far.

Maybe later, once I’ve tidied up the machinery of it all, I can quickly setup another server and invite a few interested folk to do some heavy-duty sanity checks. A lot easier to show than to tell.

1 Like