Closed (fixed)
Project:
Preferred Format
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2008 at 16:04 UTC
Updated:
5 Mar 2008 at 20:31 UTC
Users with in a role with the 'administer nodes' permission can create content of all types whether they have create permission for that node type or not. They also may not belong to a role that's given any create permissions.
Because _preferred_format_get_available_node_types only checks for create [node-type] permissions such users will not see all (or possibly even any) of the content types they can select their preferred filter for.
Patch attached adds a check for the 'administer nodes' perm.
| Comment | File | Size | Author |
|---|---|---|---|
| preferred_format0.patch | 1.17 KB | CloudCuckoo |
Comments
Comment #1
gdevlugt commentedHi,
You're absolutely right. I didn't take the 'administer nodes' permission into account.
The patch you supplied looked good and fixed this issue so I committed it.
Thanks for your help!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.