Unify two regexes used in rating searches, intersect with user privs

Fixes issue with unpriveleged users being able to circumvent the ratings
they could see, just by searching for it.  Also makes code much much
prettier.
Merge pull request #342 from NuckChorris/fix-rating-ext

Fix rating circumvention issue