공통데이터 관리 수정

This commit is contained in:
yangsh
2025-12-31 15:11:40 +09:00
parent 38444fcb4f
commit 04a06f1781
36 changed files with 1351 additions and 139 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Controllers;
use App\Models\common\MenuModel;
use App\Models\manage\UserModel;
use CodeIgniter\Controller;
abstract class BaseController extends Controller
@@ -23,5 +24,20 @@ abstract class BaseController extends Controller
$menuModel = new MenuModel();
$menus = $menuModel->getMenuList(session('usr_level'));
$this->data['menus'] = $menus["mainMenu"];
if (!empty(session('usr_id'))) {
// 비밀번호 변경일 체크
$userModel = new UserModel();
$usr_id = session('usr_id');
$diff = $userModel->chkChgPwDiff($usr_id);
if ($diff >= 1) {
$this->data['pwExpire'] = true;
} else {
$this->data['pwExpire'] = false;
}
}
}
}