*Finish task #46136.

This commit is contained in:
songchenxuan
2021-12-17 14:20:05 +08:00
parent 03399bbb8c
commit d10d8be62a
+1 -1
View File
@@ -755,7 +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. */
/* If the program changes, the authorities of programs and projects under the 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);