Closed (fixed)
Project:
Views Actions Links
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2007 at 17:14 UTC
Updated:
27 Jul 2007 at 21:28 UTC
on line 104: if(user_access(_views_actions_links_get_perm($action))) {
$action is going to be something like 'Action Name'; which is a valid permission.
on line 35: $access = user_access(_views_actions_links_get_perm(arg(2)));
arg(2) will be passed as 'action_name' and no user will ever have that permission because it doesn't exist.
The module will only work for Admin account.
Comments
Comment #1
Morris Singer commentedWhy would arg(2) be passed as 'action_name'?
Comment #2
vegeneric commentedSorry that shouldn't be in there but that wasn't the point of the post. The module as it exists ONLY functions properly for account 1, a.k.a. the administrator. It looks like a problem with 'action_name' being passed as a permission instead of 'Action Name'.
Comment #3
Morris Singer commentedI just did a full text search of the .module file, and do not turn up a single match to the string "action_name". Can you explain where you see this coming from?
Comment #4
Morris Singer commentedVegeneric,
Thanks for the heads-up. I was able to locate the problem, and it should be fixed in the 5.x-1.1 release.
Comment #5
Morris Singer commentedMarking fixed.
Comment #6
vegeneric commentedno problem, thanks for the quick fix on that.
Comment #7
(not verified) commented