Closed (fixed)
Project:
Node Invite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2010 at 11:22 UTC
Updated:
24 Jan 2011 at 02:10 UTC
/node_invite/invite/$nid currently works for every node type and every node.
Nodes are invitable even when:
Performing a check for node_invites_enabled in the node_invite_send function seems to prevent this by showing a rather blank page instead:
function node_invite_send($form_state, $node) {
$node->node_invites_enabled = _ni_node_is_enabled($node);
if ($node->node_invites_enabled){
// perform the function as normal
// The rest of the function sits in here...
global $user; //etc.
}
return $form;
}
Comments
Comment #1
hadsie commentedThanks Dave!!
I've put a fix in for this one in CVS that will be in the next release of the module. Instead of blocking within node_invite_send() I've put the access control directly on the menu item.