* Finish task #68925.
This commit is contained in:
@@ -841,12 +841,17 @@ class programModel extends model
|
||||
$this->file->updateObjectID($this->post->uid, $programID, 'project');
|
||||
$whitelist = explode(',', $program->whitelist);
|
||||
$this->loadModel('personnel')->updateWhitelist($whitelist, 'program', $programID);
|
||||
if($program->acl != 'open') $this->loadModel('user')->updateUserView($programID, 'program');
|
||||
$this->loadModel('user');
|
||||
if($program->acl != 'open') $this->user->updateUserView($programID, 'program');
|
||||
|
||||
/* 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);
|
||||
if($program->PM != $oldProgram->PM)
|
||||
{
|
||||
$productIdList = $this->dao->select('id')->from(TABLE_PRODUCT)->where('program')->eq($programID)->fetchPairs('id');
|
||||
foreach($productIdList as $productID) $this->user->updateUserView($productID, 'product');
|
||||
}
|
||||
|
||||
if($oldProgram->parent != $program->parent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user