Closed (fixed)
Project:
Fantasy Formula 1
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 23:56 UTC
Updated:
3 Mar 2011 at 00:11 UTC
Authenticated users are not able to create new teams or leagues even though I have granted the correct permissions.
Comments
Comment #1
ff1 commentedThis issue partially explains things: #789484: Confusing documentation for $node argument in hook_access()/hook_node_access()
So basically, if the $op is 'create', then $node could be just a string containing the node type.
To overcome this, we can copy the $type from node_content_access:
Comment #2
ff1 commentedCommited.