From ee2d779f7193c13ba20586f8db0f6b13d7c86012 Mon Sep 17 00:00:00 2001 From: zhuyu Date: Tue, 3 Jun 2025 17:29:50 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=8C=89=E9=92=AE=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/oa/Schedule.php | 2 +- application/admin/controller/salary/Detail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/oa/Schedule.php b/application/admin/controller/oa/Schedule.php index 038f61e..3458adb 100644 --- a/application/admin/controller/oa/Schedule.php +++ b/application/admin/controller/oa/Schedule.php @@ -117,7 +117,7 @@ class Schedule extends Backend $res[$adminId][$tmpDate] = '无'; $res[$adminId]['admin_id'] = $adminId; $res[$adminId]['name'] = $adminNames[$adminId]; - $res[$adminId]['editable'] = $this->auth->isSuperAdmin() ? 1 : 0; + $res[$adminId]['editable'] = $this->auth->check('oa/schedule/custom_manage') ? 1 : 0; } $dates[] = $tmpDate; diff --git a/application/admin/controller/salary/Detail.php b/application/admin/controller/salary/Detail.php index a50f77f..6c52194 100644 --- a/application/admin/controller/salary/Detail.php +++ b/application/admin/controller/salary/Detail.php @@ -154,7 +154,7 @@ class Detail extends Backend return json($result); } - $this->assignconfig("manage", $this->auth->isSuperAdmin()); + $this->assignconfig("manage", $this->auth->check('salary/custom_manage')); $this->view->assign("month", $month); $this->view->assign("salaryitem", json_encode($salaryItem)); return $this->view->fetch();