更新应用模块权限

This commit is contained in:
yaooo 2023-11-07 11:40:44 +08:00
parent f13834d80e
commit c15f192361
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ class OaApprove extends ApiController
$loginAdmin = Db::name('Admin')->where(['id' => $uid])->find(); $loginAdmin = Db::name('Admin')->where(['id' => $uid])->find();
$did = $loginAdmin['did']; $did = $loginAdmin['did'];
// 如果是人事部 // 如果是人事部
if ($did == 2) { $departmentId = Db::name('Department')->where(['title' => '人事部'])->value('id');
if ($did == $departmentId) {
$list[] = [ $list[] = [
"id" => 9999, "id" => 9999,
"type" => 4, "type" => 4,