cfmgrv4 init...2

This commit is contained in:
최준흠 2024-10-14 14:32:25 +09:00
parent 4ff68e9366
commit 5c69cb84ed
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ abstract class MVController extends CommonController
//모델 처리
$this->entitys = $this->list_entitys_process();
// 현재 URL을 스택에 저장
$this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . "?" . $this->request->getUri()->getQuery());
$this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
return view(
$this->view_path . "index",
['viewDatas' => $this->getViewDatas()]

View File

@ -30,7 +30,7 @@ class AuthFilter implements FilterInterface
// log_message("debug", var_export($arguments, true));
// 로그인 않했으면
if (!$auth->isLoggedIn()) {
$auth->pushCurrentUrl($request->getUri()->getPath() . "?" . $request->getUri()->getQuery());
$auth->pushCurrentUrl($request->getUri()->getPath() . ($request->getUri()->getQuery() ? "?" . $request->getUri()->getQuery() : ""));
return redirect()->to(URLS['LOGIN'])->with('error', '로그인을하셔야합니다.');
}
//User Role 비교 // 회원 ROLES이 필요ROLE($arguments) 목록에 존재하지 않으면(ACL)