PHP Page Access

gratchman - January 15, 2009 - 13:26
Project:node privacy byrole
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I have found a problem that when I have a Page's Input Format set to PHP, the page will not allow page edits by a specific role. I even checked Drupal Permissions -> Content Module -> Use PHP input for field settings (dangerous - grant with care) for that same role. Still no go.

I had stumbled across this when a user of a certain role complained because they couldn't edit a certain page. That page had PHP on it. I have tested this error by changing another page's Input Formt to PHP and again, Node Privacy By Role -> Edit permissions for that role failed again. By fail I mean it simply won't allow edits. Edits seem to be ignored.

#1

gratchman - January 15, 2009 - 13:28

Edit option is not available for any rolls if PHP is set for Input format.

#2

cYu - February 13, 2009 - 17:02
Status:active» postponed (maintainer needs more info)

I don't believe this is a NPBR issue. I'm guessing that the problem is that although you've given your role the permission to Use PHP input for field settings you have not configured that role to have access to the PHP code input format at admin/settings/filters. Can you verify whether or not that is the case?

#3

paolo c - February 20, 2009 - 11:06

I noticed the same in drupal 5. A user without access to the PHP code input format cannot edit node with page input format set to PHP, despite his permissions (I'm not using NPBR at all, I'm using TAC). A user with the PHP code input format (and all the necessary permissions) can edit such a node, independently of the "Use PHP input for field settings" permission.
At this point I think I miss the real meaning of the "Use PHP inpit for field settings" permission...

 
 

Drupal is a registered trademark of Dries Buytaert.