Needs work
Project:
Vote Up/Down
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jan 2013 at 14:08 UTC
Updated:
25 Mar 2013 at 22:57 UTC
Jump to comment: Most recent file
I have not confirmed it yet, but it worths to review it.
Details on #1894882-2: Setting not to let a user vote on his/her own node/comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | vote_up_down-acess-denied-ajax-1895594.patch | 7.6 KB | ovi.indrei |
Comments
Comment #1
marvil07 commentedOk, confirmed, but not yet solved,
Comment #2
ovi.indrei commentedHere's a patch that transforms access denied errors into more friendly responses when the initial request was made through Ajax. The access check is no longer made at the menu router level, but inside the page callbacks for voting and resetting vote.
Comment #3
ovi.indrei commented@marvil07, can I please have your thoughts on this one?
Comment #4
antoniocuga commentedHello @ marvil07, @ovidyou .
I just checked the patch and resolve the access denied error, change the message to something more friendly. But i think it is still necessary even refactor the code.
Comment #5
marvil07 commented@ovidyou: Thanks for providing a patch. I remember taking a quick look at it, and it seems that the regression happened during the initial porting of the module to D7. So I guess a good suggestion is to see what is done in 6.x-3.x and do the analogous here, that seems to be the idea behind the patch.
@antoniocuga: Thanks for trying the patch. What other steps you think the patch needs to work on? BTW, I'm changing the issue status based on that.