Closed (fixed)
Project:
Nodequeue
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
4 Jul 2008 at 16:44 UTC
Updated:
31 Aug 2008 at 03:12 UTC
Jump to comment: Most recent file
#272298: Modular Access control for queue, subqueue viewing and manipulation must be forward ported to 6. Assigning to me.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | nq6_ma3.patch | 14.16 KB | ezra-g |
| #4 | nq6_modular_access.patch | 13.75 KB | ezra-g |
| #3 | 278609.patch | 11.29 KB | ezra-g |
Comments
Comment #1
ezra-g commentedIn the 5.x version we used 2 separate functions for modular queue, subqueue access. Since the D6 menu system simplifies our code in hook_menu, it seems like it would make sense to have nodequeue_queue_access be the central access checking function and accept an optional subqueue parameter, and call nodeuqueue_api_subqueue_access from there.
Is this an acceptable approach?
Comment #2
merlinofchaos commentedThat sounds reasonable.
Comment #3
ezra-g commentedThis is in progress. Placing the preliminary patch here.
Comment #4
ezra-g commentedThis is ready for review. Thanks!
Comment #5
cyberswat commentedTested against DRUPAL-6-3 Here's my notes:
Comment #6
ezra-g commentedIt sounds like you tested smartqueue_author, which is included in the nodequeue.module download and is separate from smartqueue_users. If that's the case, this review isn't really related to this patch ;). Can you confirm which module you tested?
Comment #7
ezra-g commentedI should clarify: I'm not sure that this particular component of Nodequeue has seen much attention in the upgrade to D6 and therefore might reflect errors that are not a result of this patch -- I will follow through your excellent patch review steps and report what I find.
Comment #8
ezra-g commentedFrom step 2: "Generated error: warning: Missing argument 3 for form_set_value(), called in /var/www/drupal/sites/all/modules/nodequeue/authorqueue.module on line 48 and defined in /var/www/drupal/includes/form.inc on line 1296."
This error is in fact caused because smartqueue_author has not been updated to Drupal 6.
From step 13: These errors are unrelated to the patch, were reported in #167465: SQL warnings when user has manipulate queue permission and are fixed as of a few minutes ago.
From step 8: Can you confirm whether the links which are repeated are in fact links for different taxonomy subqueues? It might help to change the configuration of the name of these queues to use the wildcard %subqueue option so the links have different text.
Aside from those issues, your testing was smooth, correct?
Thanks again for this thorough review.
Comment #9
ezra-g commentedThis revised patch incorporates a fix that in my testing resolves #277867: Nodequeue tab on nodes even though they are disabled, and provides a working forward-port.
Comment #10
ezra-g commentedCommitted.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.