Download & Extend

nodequeue_queue_access() ignores passed in $account

Project:Nodequeue
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
nodequeue_user_access.patch813 bytesIgnored: Check issue status.NoneNone

Comments

#1

Status:active» needs review

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

#2

Status:needs review» fixed

Committed. Thanks!

#3

Status:fixed» closed (fixed)

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