cfmgrv3 init...100
This commit is contained in:
parent
f26a3b4679
commit
d02f432071
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user