get rid of is_admin, fixes #676
This commit is contained in:
@ -187,7 +187,7 @@ class Ratings extends Extension
|
||||
// public function onPostListBuilding(PostListBuildingEvent $event)
|
||||
// {
|
||||
// global $user;
|
||||
// if ($user->is_admin() && !empty($event->search_terms)) {
|
||||
// if ($user->can(Permissions::BULK_EDIT_IMAGE_RATING) && !empty($event->search_terms)) {
|
||||
// $this->theme->display_bulk_rater(Tag::implode($event->search_terms));
|
||||
// }
|
||||
// }
|
||||
|
Reference in New Issue
Block a user