better interface for permission inheritance

Ticket

+commit
 

Plus cards (eg X+Y) can "inherit" their permissions from the left card (X).  So if X is set to be editable by anyone and X+Y is set to inherit, then X+Y will be editable by anyone.

 

Currently, the interface to this is pretty abstruse, and unnecessarily so on *self rules.  For example, we wouldn't know what permission to show on "*all plus" permissions, so it has to just say somethign about inheriting.  But if we're looking at X+Y+*self, we should be able to show the actual permissions for X+Y as inherited from X, not just "Inherit from left card", as is currently shown.

 

on +*self rules only, it should read

Anyone (inherit)

To do this, we will need to mess with both the rstar_pack and the permissions_pack.

 

The permissions_pack generates this text in one place, the #core_inherit_content method, but currently that method is called on the actual rule and does not have access to the current set context.  For example, if looking at X+Y+*self, and the read rule in play is *all plus+*read, then the permissions pack is used to render *all plus, and it can't do anything special in the context of X+Y.

 

This is almost certainly going to mean messing with the rule pack, presumably to send the context to the permission pack somehow.

 

 

moved this back to "in progress".  it looks good in closed view but is still confusing in edit view.