* Fix whitelist bug.

This commit is contained in:
Yagami
2021-08-06 18:55:45 +08:00
parent 9311b71820
commit c1559f9ac8
+1 -1
View File
@@ -575,7 +575,7 @@ class personnelModel extends model
$projectWhitelist = $this->getWhitelistAccount($sprint->project, 'project');
$newWhitelist = array_merge($projectWhitelist, $accounts);
$source = $source == 'upgrade' ? 'upgrade' : 'sync';
$this->updateWhitelist($newWhitelist, 'project', $sprint->project, 'whitelist', $source);
$this->updateWhitelist($newWhitelist, 'project', $sprint->project, 'whitelist', $source, $updateType);
/* Removal of whitelisted persons from projects. */
if($updateType == 'replace')