Volume-wide permissions / volume definition

beginner - January 9, 2007 - 06:27
Project:Outline
Version:5.x-1.0
Component:Code
Category:task
Priority:normal
Assigned:beginner
Status:active
Description

I think it is handy if I describe at this early stage what I now mean by 'volume-wide' permissions or more generally, what is the definition of a 'volume'.

This issue is a partial update of the description I gave at the very top of that issue: http://drupal.org/node/65319.

current situation / problem

same as at http://drupal.org/node/65319.

What new features can be introduced, now?

There is one big difference now compared to what I said in the aforementioned issue: namely, we do not need to care about create/view/edit permissions. Those are nicely handled in core per node-type. As pwolanin once remarked, one can have a different node type per volume, and different access permissions will automatically be respected for this volume.

What really matters, is the ability to add a node into a specific volume. If two people write a novel within the same site, author A will not appreciate if author B inserts one of his own chapter into the outline of A's novel. A and B might be dealing with the same node type and have the same permissions (i.e. create and edit own 'novel page' node type), but B shouldn't be allowed to add a page into the outline of A's novel.

Since this is the outline.module, we are only dealing with the outline, and the ability of specific user roles of adding nodes into specific volumes.

This will then be one of the core feature of this module.
Besides that, most of the other feature made possible by this volume are the same as those described here, at the top: http://drupal.org/node/65319 .

#1

beginner - April 5, 2007 - 12:30
Version:<none>» 5.x-1.0

The basic module works now. The 2.0 version would include additional features like the above.

I am now considering how best to implement this.

#2

beginner - April 5, 2007 - 13:54

The interface will be at:
?q=admin/content/outline/1

The attached patch shows the table definition: I will use a similar technique as in block_roles.
But here, we can authorize roles AND users.

I'll think more about the details of implementation before I carry on, on this.

AttachmentSize
table-for-outline-perms.patch 1.91 KB
 
 

Drupal is a registered trademark of Dries Buytaert.