Posted by nohup on July 2, 2011 at 12:30am
3 followers
| Project: | Ubercart Marketplace |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
Using array(1) as 'access arguments' for hook_menu where 'access callback' is mp_marketplace_can_view_seller and using the user object passed to mp_marketplace_can_view_seller to compare the uid instead of arg(1) will make ubercart_marketplace compatible with the me module or any other module which changes/replaces the uid in the menu.
Comments
#1
git patch against 6.x-1.x attached
#2
Your patch changes many unnecessary lines.
#3
hmm, this is something that would be extremely useful indeed.. and kind of the normal practice too, so this pretty much a bug.
Before I go ahead with cleaning up that patch though - was there any particular reason why the arguments were commented out in the first place?