@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function boot() |
| 10 | 10 | { |
| 11 | - Event::listen('backend.menu.extendItems', function ($manager) { |
|
| 11 | + Event::listen('backend.menu.extendItems', function($manager) { |
|
| 12 | 12 | $manager->addSideMenuItems('RainLab.User', 'user', [ |
| 13 | 13 | 'banned' => [ |
| 14 | 14 | 'label' => 'vojtasvoboda.userbanned::lang.sidemenu.menu_label', |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $throttleModel = Auth::createThrottleModel(); |
| 26 | 26 | $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function($item){ |
| 27 | - return $item->user_id; |
|
| 27 | + return $item->user_id; |
|
| 28 | 28 | }); |
| 29 | 29 | $query->whereIn('id', $bannedCollection); |
| 30 | 30 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function listExtendQuery($query) |
| 24 | 24 | { |
| 25 | 25 | $throttleModel = Auth::createThrottleModel(); |
| 26 | - $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function($item){ |
|
| 26 | + $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function($item) { |
|
| 27 | 27 | return $item->user_id; |
| 28 | 28 | }); |
| 29 | 29 | $query->whereIn('id', $bannedCollection); |