With initial commit for Drupal 7 the permission to allow PHP code for auto node title has been changed from "use PHP for title patterns" to "Use PHP for title patterns" (capital 'U'). At some places the user_access function call was not changed accordingly, preventing the use of PHP code for all users.

CommentFileSizeAuthor
auto_nodetitle-issue.patch1.54 KBMrBurns977
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

daviesap’s picture

Hi

Any update on this?

I can't get PHP working with D7

rickvug’s picture

Related to this, should this permission even be available if PHP input filter is turned off? My understanding is that PHP module was supposed to be a global kill switch.

fago’s picture

Status: Needs review » Fixed

indeed, however usually permissions are lower-case in code, so I've fixed it by re-naming the permission back to the old name.

ad #2: maybe, but that's another issue.

Status: Fixed » Closed (fixed)

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

aaronpinero’s picture

Version: 7.x-1.x-dev » 7.x-1.0
Status: Closed (fixed) » Needs work

I am having this issue with the 7.x-1.0 version of this module. Actually, I cannot seem to assign the permission to a user who can use the php input mode, but I *can* assign it to a user who *cannot* use the php input mode. It really should be the other way around.

  • fago committed c2f193e on 8.x-1.x
    #998864 patch by fago: fixed name of the PHP permission
    
    
anmolgoyal74’s picture

Issue summary: View changes
Status: Needs work » Needs review

The current version have small 'u' at every place. And everything is working as per permissions set in d7.
Try to clear the cache if still not working.

gaurav.kapoor’s picture

Status: Needs review » Closed (works as designed)