Adding missing permission check in ratethread.php
Adding missing permission check in search.php
Correcting draft checks
Fixes Bug #956 Quote tags don't work if username contains a ]
Fixes broken invalidation of solved captchas and http://dev.mybb.com/issues/864
Probably broken while fixing http://dev.mybb.com/issues/2120