Forum OpenACS Development: Re: Creating a Trash for generic objects

Collapse
Posted by Dave Bauer on
Ok I had an idea :)

Basically lose inherited permissions when an item is put in the trash (with the changing of context_id). This makes sense since the object is "moving" but we need to make sure that the "owner" of the object has permission to get it back out of the trash, and noone else or only others who have admin over the object.

For exmaple, in forums, a user may have admin over the forums package, and possibly should be able to remove any item frm the trash that was from that forum. Since the admin privilege is inherited, it would need to be explictily granted when the item is moved to the Trash.

Anyway, it looks like the trash operation should use some callbacks on insert into the trash and removal frm the trash so any type specific actions can be taken. In addition we would need a type specific way to remove an item from the trash and figure out where it goes after it is removed.