@@ -50,7 +50,7 @@ |
||
| 50 | 50 | public static function boot() |
| 51 | 51 | { |
| 52 | 52 | // allow Super Admin full access |
| 53 | - Gate::after(function ($user, $ability) { |
|
| 53 | + Gate::after(function($user, $ability) { |
|
| 54 | 54 | return $user->hasRole('Super Admin'); |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -21,12 +21,12 @@ |
||
| 21 | 21 | ]; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - return $ret? [ |
|
| 25 | - __('DASHBOARD') => count($ret) > 1? [ |
|
| 24 | + return $ret ? [ |
|
| 25 | + __('DASHBOARD') => count($ret) > 1 ? [ |
|
| 26 | 26 | 'access' => true, |
| 27 | 27 | 'group' => $ret, |
| 28 | 28 | 'weight' => -10000 |
| 29 | - ]: array_merge(reset($ret), ['weight' => -10000]), |
|
| 30 | - ]: []; |
|
| 29 | + ] : array_merge(reset($ret), ['weight' => -10000]), |
|
| 30 | + ] : []; |
|
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | \ No newline at end of file |