<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">I wrote a module called Project
Permissions that allows access to be controlled to Project and Issue
nodes by user (using uid as gid in node_access). I installed it on a
site, and specified access to a certain project node for a certain
user, and the record
was written as was expected to node_access. The role the user belongs
to does not have the 'access project' or 'access project issues'
permissions enabled. The problem is, the user can't even access the
project that she should have permissions to access according to the
record in node_access. The nid for the node is 9, and the user_id is
9, so the data in node_access is:<br>
<br>
nid - 9<br>
gid - 9<br>
realm - project_permissions<br>
grant_view - 1<br>
grant_update - 1<br>
grant_delete - 0<br>
<br>
Here's my hook_node_grants:<br>
<br>
function project_permissions_node_grants($user, $op) {<br>
$grants['project_permissions'] = array($user->uid);<br>
return $grants;<br>
}<br>
<br>
I have the devel_node_access block enabled, and I can see that this
record is the only one being returned from node_access. </font></font><font
size="-1"><font face="Arial">I've had this working on another site, so
I'm not sure what else I could be missing. Can anyone explain why my
user wouldn't be able to access the node?<br>
<br>
Thanks.<br>
<br>
Steve<br>
</font></font><br>
</body>
</html>