We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4da04e commit e6d3c66Copy full SHA for e6d3c66
src/Http/Controllers/LoginController.php
@@ -60,9 +60,10 @@ public function showLoginForm()
60
*/
61
protected function authenticated(Request $request, $user)
62
{
63
+ $roles = Pengelola::cache()->get('all')->where('user_id', Auth::user()->id)->whereNull('inactive')->pluck('role')->toArray();
64
$redirect = redirect()->intended($this->redirectPath($request));
65
session(['year' => $request->input('year')]);
- session(['role' => 'anggota']);
66
+ session(['role' => $roles]);
67
return $request->wantsJson()
68
? new JsonResponse([
69
'redirect' => $redirect->getTargetUrl(),
0 commit comments