* fix for update user view.

This commit is contained in:
wangyidong
2019-04-01 13:57:58 +08:00
parent f5b587034f
commit 4308ae4a70
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ class productModel extends model
if(!dao::isError())
{
$this->file->updateObjectID($this->post->uid, $productID, 'product');
if($product->acl != $oldProduct->acl or $product->whitelist != $oldProduct->whitelist) $this->loadModel('user')->updateUserView($productID, 'product');
if($product->acl != 'open' or $product->acl != $oldProduct->acl or $product->whitelist != $oldProduct->whitelist) $this->loadModel('user')->updateUserView($productID, 'product');
return common::createChanges($oldProduct, $product);
}
}
+1 -1
View File
@@ -428,7 +428,7 @@ class projectModel extends model
if(!dao::isError())
{
$this->file->updateObjectID($this->post->uid, $projectID, 'project');
if($project->acl != $oldProject->acl or $project->whitelist != $oldProject->whitelist) $this->loadModel('user')->updateUserView($projectID, 'project');
if($project->acl != 'open' or $project->acl != $oldProject->acl or $project->whitelist != $oldProject->whitelist) $this->loadModel('user')->updateUserView($projectID, 'project');
return common::createChanges($oldProject, $project);
}
}