fix: [whitelist] Correclty refresh the cached values. Fix #3772

pull/5929/head
mokaddem 2020-05-18 13:49:40 +02:00
parent 46eb5475e3
commit aad74d6ca9
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class Whitelist extends AppModel
public function getBlockedValues()
{
if ($this->whitelistedItems !== false) {
if ($this->whitelistedItems === false) {
$Whitelists = $this->find('all', array('fields' => array('name')));
$this->whitelistedItems = array();
foreach ($Whitelists as $item) {