Closed (fixed)
Project:
Achievements
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2012 at 17:33 UTC
Updated:
15 May 2012 at 16:00 UTC
Great module!
Minor bug: Manually awarding an achievement to a user that does not have permission to earn achievements returns a message that the achievement was unlocked when it isn't.
Possible fix attached.
| Comment | File | Size | Author |
|---|---|---|---|
| rkimmons-check-user-access.patch | 901 bytes | Royce Kimmons |
Comments
Comment #1
Royce Kimmons commentedOn a related note, any particular reason you use drupal_set_message and returns in the submit function instead of using form_set_error in a validation function?
Just wondering aloud.
Comment #2
morbus iffThanks for the patch! Bizarrely, I didn't get an email notification about this one (not sure why), but I'll take a look at it in more detail later.
Comment #3
morbus iffCommitted.
(Incidentally, the #validate is a good point. Will have to remember to revise that in a different issue.)