更新应用模块权限
This commit is contained in:
parent
f13834d80e
commit
c15f192361
|
@ -43,7 +43,8 @@ class OaApprove extends ApiController
|
|||
$loginAdmin = Db::name('Admin')->where(['id' => $uid])->find();
|
||||
$did = $loginAdmin['did'];
|
||||
// 如果是人事部
|
||||
if ($did == 2) {
|
||||
$departmentId = Db::name('Department')->where(['title' => '人事部'])->value('id');
|
||||
if ($did == $departmentId) {
|
||||
$list[] = [
|
||||
"id" => 9999,
|
||||
"type" => 4,
|
||||
|
|
Loading…
Reference in New Issue