Permissions are a bit messed up.

vegeneric - July 2, 2007 - 17:14
Project:Views Actions Links
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Morris Singer - July 12, 2007 - 02:32

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

#2

vegeneric - July 12, 2007 - 17:18

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

#3

Morris Singer - July 13, 2007 - 06:09

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?

#4

Morris Singer - July 13, 2007 - 06:31

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.

#5

Morris Singer - July 13, 2007 - 16:44
Status:active» fixed

Marking fixed.

#6

vegeneric - July 13, 2007 - 21:04

no problem, thanks for the quick fix on that.

#7

Anonymous - July 27, 2007 - 21:28
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.