Ticket #1095 (closed enhancement: fixed)

Opened 4 years ago

Last modified 21 months ago

[TiddlyWebWiki] safe deletion

Reported by: FND Owned by: FND
Priority: major Milestone:
Component: TiddlyWebWiki Version:
Severity: medium Keywords:
Cc:

Description (last modified by FND) (diff)

Regular users should not be able to delete shared tiddlers.

Therefore the default bags (system and common) should be assigned a policy preventing this.

Change History

Changed 4 years ago by FND

This could be achieved using toolbar commands' isEnabled method and the server.permissions field:

config.commands.deleteTiddler.isEnabled = function(tiddler) {
	return tiddler.fields["server.permissions"]
		.split(", ").contains("delete");
};

Changed 4 years ago by FND

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:9972 ("disabled save and delete toolbar commands for unauthorized users").

A new ticket (#1100) has been created for trash can functionality.

Changed 4 years ago by FND

  • priority changed from trivial to major
  • status changed from closed to reopened
  • resolution fixed deleted
  • description modified (diff)
  • severity changed from trivial to medium

On reflection, while useful, this fix does not solve the original issue. Adjusting the ticket description accordingly.

Changed 4 years ago by FND

  • status changed from reopened to closed
  • resolution set to fixed

 http://github.com/tiddlyweb/tiddlywebwiki/commit/f057151a7ec9c57f615132427105f5fe65c31a38 adds policies to default bags preventing (among other things) deletion by regular users.

Changed 21 months ago by Odom35Vanessa

I had a desire to begin my own organization, however I didn't have enough of cash to do it. Thank God my dude proposed to take the <a href=" http://bestfinance-blog.com/topics/business-loans">business loans</a>. Thence I received the collateral loan and realized my old dream.

Note: See TracTickets for help on using tickets.