@@ -12,8 +12,7 @@ |
||
| 12 | 12 | public function run() |
| 13 | 13 | { |
| 14 | 14 | // Create the test users - note, none are installers - permissions are assigned randomly |
| 15 | - factory(App\User::class, 15)->create()->each(function($user) |
|
| 16 | - { |
|
| 15 | + factory(App\User::class, 15)->create()->each(function($user) { |
|
| 17 | 16 | $user->UserPermissions()->save(factory(App\UserPermissions::class)->create(['user_id' => $user->user_id])); |
| 18 | 17 | }); |
| 19 | 18 | } |
@@ -37,7 +37,8 @@ |
||
| 37 | 37 | // Submit the new customer form |
| 38 | 38 | public function store(Request $request) |
| 39 | 39 | { |
| 40 | - if (!$this->authorize('hasAccess', 'add_customer')) { |
|
| 40 | + if (!$this->authorize('hasAccess', 'add_customer')) |
|
| 41 | + { |
|
| 41 | 42 | return abort(403); |
| 42 | 43 | } |
| 43 | 44 | |