The Page Title tab that appears in the edit content type screen (as opposed to the node edit screen) only displays for user 1. I gave another role permission to "Administer Page Title", but the tab does not appear on admin/structure/types/manage/[node-type] like it does for user 1. I want another role, superadmin, to be able to create content types and set this setting.

#2 correct_user_access-1684840-1.patch621 bytesjoelrotelli
Members fund testing for the Drupal project. Drupal Association Learn more


egifford’s picture

I'm encountering this as well. It looks like there is a typo in the function page_title_form_node_type_form_alter.

This function uses the permission administer page title but I think it should use administer page titles as does the rest of the module's code.

Notice the letter s at the end of the second permission string.

Changing the following line:

if (!user_access('administer page title')) return;

to the following worked for me:

if (!user_access('administer page titles')) return;

I think an argument could be made for using define() to set these permission strings up as defined constants.

I don't know how to roll a patch... :(

joelrotelli’s picture

Status: Active » Needs review
621 bytes

I made this patch for you , for the #1day1patch initiative :)

egifford’s picture

Thanks, Joel! I like the idea of the 1day1patch initiative!

balintk’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Patch works fine.

balintk’s picture

Version: 7.x-2.7 » 7.x-2.x-dev