cfmgrv3 init...100

This commit is contained in:
최준흠 2024-10-14 15:19:06 +09:00
parent f26a3b4679
commit d02f432071

View File

@ -30,8 +30,8 @@ class AuthFilter implements FilterInterface
session()->set(RETURN_URL, $request->getUri()->getPath() . '?' . $request->getUri()->getQuery());
return redirect()->to('/login')->with('error', '먼저 로그인을하셔야합니다.');
}
if (!in_array(session()->get('role'), $arguments)) {
$roles = explode(',', session()->get('role'));
if (empty(array_intersect($roles, $arguments))) {
return redirect()->to('/login')->with(
'error',
sprintf(