Closed (fixed)
Project:
Workspace
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2006 at 18:18 UTC
Updated:
13 Mar 2006 at 19:02 UTC
The code used to determine if a node type can be created by the current user is broken.
A user with 'administer nodes' does not always have permission to create all types of nodes currently defined in the system. Using the node_access() function always returned TRUE for any node type if the user had 'administer nodes' permission set.
The attached patch changes the way the form detects what node types are available to the user. The code is taken from the ?q=node/add page -- in the node_add() function.
| Comment | File | Size | Author |
|---|---|---|---|
| addform.patch | 429 bytes | budda |
Comments
Comment #1
jvandyk commentedCommitted, thanks.
Comment #2
(not verified) commented