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());
|
session()->set(RETURN_URL, $request->getUri()->getPath() . '?' . $request->getUri()->getQuery());
|
||||||
return redirect()->to('/login')->with('error', '먼저 로그인을하셔야합니다.');
|
return redirect()->to('/login')->with('error', '먼저 로그인을하셔야합니다.');
|
||||||
}
|
}
|
||||||
|
$roles = explode(',', session()->get('role'));
|
||||||
if (!in_array(session()->get('role'), $arguments)) {
|
if (empty(array_intersect($roles, $arguments))) {
|
||||||
return redirect()->to('/login')->with(
|
return redirect()->to('/login')->with(
|
||||||
'error',
|
'error',
|
||||||
sprintf(
|
sprintf(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user