Commit a301aa7f authored by Waterfox's avatar Waterfox
Browse files

Fix $user bug

parent 478c7895
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ function index(): View
        $user = session()->get('user');
        $locations = DivingLocation::all();
        $levels = Prerogative::select('PRE_MAX_DEPTH')->groupby('PRE_MAX_DEPTH')->get();
        return view('dives', ['dives' => $dives, 'userPre' => Prerogative::find($user->PRE_CODE), 'locations' => $locations, 'levels' => $levels]);
        return view('dives', ['dives' => $dives, 'userPre' => Prerogative::find($user->PRE_CODE), 'locations' => $locations, 'levels' => $levels, 'user' => $user]);
    }

    function show($id) {