Closed (fixed)
Project:
Commerce Reorder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
26 Oct 2011 at 14:55 UTC
Updated:
12 Nov 2011 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
pcambraComment #2
ikos commentedHi,
Yes critical one - won't be hard to fix though. I'll put a fix in tonight.
Richard
Comment #3
pcambraOk this is happening only when the user has permission to see his own orders and also the reorder permission, then they can reorder whatever order they want from other users, not a best practice at all!
The problem is that drupal_access_denied() doesn't break the workflow of code (I thought it did) and thus it throws an access denied but it reorders the thing anyways.
I've added a return and also removed the message as in an access denied there's no further information to give, we don't want to give clues to malicious users, do we?
Patch attached for review, if it fixes the problem for you I'll commit it right away.
Comment #4
dawick commentedPatch solves the issue, thanks for the quick fix.
Rgds,
Koen
Comment #5
pcambraLet's commit this then as it is something urgent to fix.
dawick thanks for the report and the feedback!