@@ -37,7 +37,7 @@ |
||
37 | 37 | 'email' => '[email protected]', |
38 | 38 | 'password' => bcrypt('password'), |
39 | 39 | 'active' => 1, |
40 | - 'is_installer' => 1 |
|
40 | + 'is_installer' => 1 |
|
41 | 41 | ]); |
42 | 42 | } |
43 | 43 |
@@ -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,7 @@ discard block |
||
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 | return abort(403); |
42 | 42 | } |
43 | 43 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
67 | 67 | Log::notice('New Customer ID-'.$request->custID.' created by User ID-'.Auth::user()->user_id); |
68 | 68 | |
69 | - return response()->json(['success' => true ]); |
|
69 | + return response()->json(['success' => true]); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 |
@@ -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 |