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

Morris Singer’s picture

Why would arg(2) be passed as 'action_name'?

vegeneric’s picture

Sorry 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'.

Morris Singer’s picture

I 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?

Morris Singer’s picture

Vegeneric,

Thanks for the heads-up. I was able to locate the problem, and it should be fixed in the 5.x-1.1 release.

Morris Singer’s picture

Status: Active » Fixed

Marking fixed.

vegeneric’s picture

no problem, thanks for the quick fix on that.

Anonymous’s picture

Status: Fixed » Closed (fixed)