Hi,
This patch let other users than the author of a Q/A select the best answer. To achieve this I add a new perm select best answer on any Q/A.
Along with this new perm I also let the user with uid = 0 select the best answer.
The behaviour of the module is not changed as the author of the Q/A is still able to select the best answer.
Regards,
| Comment | File | Size | Author |
|---|---|---|---|
| new_perm_for_select.patch | 1.19 KB | ec |
Comments
Comment #1
ec commentedIt may need some review before being ported ;-)
Comment #2
jcisio commentedThanks. I've committed http://drupalcode.org/project/question_answer.git/commit/bfa9d8e.
(I changed permission name and also remove the $user->uid == 0 check - I don't understand why you want anonymous user to be able to select any answer.)
Comment #3
ec commentedHi, thanks for committing. $user->uid ==0, is my big mistake!! I was thinking of the admin which uid=1. I think that we should have the admin always able to perform a selection, no?
Comment #4
jcisio commentedFor uid == 1, we don't need that check, because user_access('anything') will be TRUE for admin.
Comment #5
ec commentedOk good, so this check was really a big mistake! Thanks.
Comment #6
ec commentedAlready committed, see #2.
Comment #7
jcisio commentedWe need to port it to 7.x branch.
Comment #8
jcisio commentedFixed with http://drupalcode.org/project/question_answer.git/commit/271dbe0