nodequeue_queue_access() ignores passed in $account

wulff - May 26, 2009 - 11:04
Project:Nodequeue
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

My work on #468136: Add test cases led me to this issue.

If you pass in a user account to nodequeue_queue_access(), the two user_access() checks are done against the currently logged in user and not the account you wish to check.

See attached patch.

AttachmentSize
nodequeue_user_access.patch813 bytes

#1

ezra-g - June 1, 2009 - 15:44
Status:active» needs review

Thanks for posting a patch -- Marking as needs review.

#2

ezra-g - June 1, 2009 - 15:47
Status:needs review» fixed

Committed. Thanks!

#3

System Message - June 15, 2009 - 15:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.