* finish task #3190.

This commit is contained in:
wangyidong
2017-08-21 14:47:41 +08:00
parent 975a6ba2b9
commit bfa5ff7352
+4
View File
@@ -610,6 +610,10 @@ class docModel extends model
*/
public function checkPriv($object, $type = 'lib')
{
$acls = $this->app->user->rights['acls'];
if(!empty($object->product) and !empty($acls['products']) and !in_array($object->product, $acls['products'])) return false;
if(!empty($object->project) and !empty($acls['projects']) and !in_array($object->project, $acls['projects'])) return false;
if($object->acl == 'open') return true;
$account = ',' . $this->app->user->account . ',';