in relativity.module:
<?php
function relativity_may_unchild($parent, $child) {
- if (!node_access('update', $parent)) {
+ if (!node_access('update', $parent) || variable_get("relativity_parent_ord_$child->type", '') == 'one') {
return FALSE;
}
?>
The problem this solves (I've wined about it elsewhere) is that if you Remove a child that has parental ordinality of 'one', it cannot be re-attached to the original parent or any other parent.
With this method, the only way to Remove such a node is to delete it completely (for which you need edit perm for the child node).
Another approach would be to modify the perm-checks for the list of attachable nodes to allow attaching children with p-ord 'one', but no parent_node, ... so you could put down and pick up these nodes if you have edit perms for both parent nodes ... but you don't need edit child node perm to palm it off to another parent ... I can see different workflow possibilities ... interesting ?
Comments
Comment #1
JohnG-1 commentedComment #2
owahab commented+1 for the second approach.
I would not go for doing it this way JohnG the only way to Remove such a node is to delete it completely (for which you need edit perm for the child node)