Add relation permission

telex4 - March 4, 2006 - 08:41
Project:Clipper
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Here's the use case: a magazine is edited entirely online. Authors submit articles, editors check them over then add them to a particular issue. The authors won't know which issue their article is for, nor should they be able to add the article to an issue.

This could perhaps be achieved by setting the post options to, by default, stick works in moderation so they don't show up in an issue even if the author naughtily adds a child-parent relation. But I'd prefer to keep articles fully published and open even if they don't show up in issues.

So: it would be nice if there was an extra permission for "Creating relations" or something similar. That way only editors would be allowed to make the child-parent relation, and authors simply wouldn't see the clipper part in the form.

#1

keve - March 5, 2006 - 20:33
Status:active» needs review

For my site, i already added some permissions for clipper.

I also use 'view relationships' permission. Because when i show 'clipped' content inline on a node page, i dont want users to see the parent or child node. (I give permission only for content editors)

AttachmentSize
clipper.perm.patch 1.92 KB

#2

Bèr Kessels - March 11, 2006 - 14:53
Status:needs review» needs work

Please use the validate hook in the nodapi, to make the bahaviour more transparant. You current implementation is confusing for users, checking for perms on insert is bad, it breaks often and it also does not report anything to the user.

 
 

Drupal is a registered trademark of Dries Buytaert.