I'm not sure if this is a bug or what, but I've seen it reported within other modules as a bug and it caused me a bit of headache... it seems to me that this is a Drupal core issue.
When I assign permission to roles that I've created, and then give them the permission listed as :
Use PHP input for field settings (dangerous - grant with care)
They cannot edit pages that have PHP input nor can they create pages with PHP.
The bigger issue being -- they can't edit pages that were created by the admin that have PHP on them.
The solution to this problem for me was to also allow the permission listed as :
administer filters
However, this seems obnoxious that there would be 2 permissions involved with 1 concept, especially since the latter seems to have further-reaching consequence than the former.
I just want to put this out there though so that more people will find it -- it would be great if I had found this when I was trying to resolve the issue.
Comments
Comment #1
mdupontYou're mixing 2 things here: input formats and CCK permissions.
Use PHP input for field settings (dangerous - grant with care) is a permission from CCK module to allow users to configure fields using PHP code, when in admin/content/node-type/[type]/fields. Nothing to do with content edition and input formats.
To give access to some roles to use PHP when editing content, you need to give to these roles access to an input format that has the PHP filter enabled and properly configured (most of the time PHP filter should run first). This is done on admin/settings/filter. The "PHP code" input format is preconfigured for this.
Comment #2
dirka commented