Closed (fixed)
Project:
Quickpost
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2004 at 17:34 UTC
Updated:
23 Dec 2004 at 04:15 UTC
Even if I try and manually add "/edit" to the URL, I get an access denied error. If I disable the module, edit works properly.
Comments
Comment #1
skorch commentedThe problem is that its not letting the person that created the node edit.
I really don't know if this is the proper place or way to check, but I added this to about link 212 of quickpost.module:
global $user;
$nid = arg(1);
$node = node_load(array('nid' => $nid));
if( $user->uid == $node->uid )
$has_access = TRUE;
else
$has_access = node_access('update', array('nid'=>$nid,'status'=>1), $user->uid );
then replaced the node_access() calls in each of the three menu array items that are being created with $had_access
Comment #2
pyromanfo commentedFixed in CVS.
Comment #3
(not verified) commented