Closed (fixed)
Project:
View reference
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2013 at 16:59 UTC
Updated:
19 Mar 2016 at 08:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ericras commentedAccess to this definitely shouldn't be universal. Here's a very basic patch that uses the core 'use PHP for settings' perm.
The downside with this approach is that anyone who has the 'use PHP for settings' can now grant php access through this viewreference setting.
For something as sensitive as php execution access, this module should probably create its own permission.
Comment #2
ericras commentedComment #4
danielb commentedThanks for drawing my attention to this. I've implemented an alternate solution which disables that option if the person setting up the field doesn't have that permission, and also if the last user to edit a node doesn't have the permission the PHP won't be executed either.
Comment #5
danielb commented