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.

CommentFileSizeAuthor
preferred_format0.patch1.17 KBCloudCuckoo

Comments

gdevlugt’s picture

Status: Needs review » Fixed

Hi,

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!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.