Closed (fixed)
Project:
Views Access Callback
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2012 at 09:28 UTC
Updated:
6 Jan 2014 at 11:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
a_c_m commentedYup, ran into this. In my experience :
* Breaks for non root (not tested further perms)
* When viewing a full page view, its fine
* When trying to view a block, crash
Comment #2
karol haltenberger commentedIf I understand correctly, for page displays, the module's own access callback and its arguments are provided to drupal by the plugin's get_access_callback() function:
For other types (block, attachment etc) the plugin has to return the result of the user defined callback, through its own access callback:
This however calls the module's intermediary function with the wrong arguments.
The passed arguments should be the same as in the get_access_callback() method.
To fix this in 6.x-1.0 replace line 9 in views_access_callback_plugin_access_callback.inc
with
or apply the attached patch.
Comment #3
cafuego commentedPatch applied. A new 6.x-1.x-dev version should be out in a few hours.
Comment #5
noomz commentedPlease also apply patch for 7.x-1.0 too. (patch attached)
Comment #6
Schoonzie commentedI am also getting this issue on 7.x-1.0-beta1.
Patch in #5 didn't apply cleanly but manually making the change fixed it.
Comment #7
maciej.zgadzaj commentedThis has been already fixed in 7.x-1.x as well (as per #2126835: Fatal error for users without the "access all views" permission in a page with a Views block).
Please do not change original issue settings.