The turning off of the setting "view chatbox log" in the Access Control page for the chatbox.module only stops Drupal from displaying the link to the logs. Anybody (non-authorized members, non-members, everybody!) can access the logs if they know the right url, which is the same for all Drupal sites using this chatbox.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | chatbox-logaccess.patch | 651 bytes | darren oh |
| #3 | chatbox2.patch | 211 bytes | jmengle |
| #1 | chatbox_0.patch | 526 bytes | jmengle |
Comments
Comment #1
jmengle commentedI added a user_access check before the logs were shown, and it seems to work. This is my first patch; be gentle ;)
Comment #2
ricmadeira commentedThanks! That does the trick, alright!
I don't understand much about this too, but shouldn't the "You are not authorized" message be inside a "t()" so that Drupal can translate it in other languages too? Otherwise, everything seems fine!
Comment #3
jmengle commentedThanks for catching that :) I changed the code and think it's ready.
Comment #4
darren ohThe last patch was not a unidiff. I redid it and will review it soon.
Comment #5
darren ohPatch applied.
Comment #6
(not verified) commented