From 03399bbb8cecba0ab20984a9d2620d7492746170 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Fri, 17 Dec 2021 14:17:12 +0800 Subject: [PATCH] *Finish task #46136. --- module/program/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/program/model.php b/module/program/model.php index 2e01e65f0a..3cc619b9ac 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -755,6 +755,7 @@ class programModel extends model $this->loadModel('personnel')->updateWhitelist($whitelist, 'program', $programID); if($program->acl != 'open') $this->loadModel('user')->updateUserView($programID, 'program'); + /* If the program changes, program and project authorities under this program should be refreshed. */ $children = $this->dao->select('id, type')->from(TABLE_PROGRAM)->where('path')->like("%,{$programID},%")->andWhere('id')->ne($programID)->andWhere('acl')->eq('program')->fetchPairs('id', 'type'); $this->loadModel('user'); foreach($children as $id => $type) $this->user->updateUserView($id, $type);