Merge branch 'zenops_41' of https://gitlab.zcorp.cc/easycorp/zentaopms into zenops_41
This commit is contained in:
@@ -130,6 +130,7 @@ class file extends control
|
||||
if(!$this->file->checkPriv($file))
|
||||
{
|
||||
echo(js::alert($this->lang->file->accessDenied));
|
||||
if(isonlybody()) return print(js::reload('parent.parent'));
|
||||
return print(js::locate(helper::createLink('my', 'index')));
|
||||
}
|
||||
|
||||
|
||||
@@ -565,7 +565,7 @@ class fileModel extends model
|
||||
}
|
||||
elseif($objectType == 'feedback')
|
||||
{
|
||||
$productID = $this->dao->findById($objectID)->from(TABLE_FEEDBACK)->fetch();
|
||||
$productID = $this->dao->findById($objectID)->from(TABLE_FEEDBACK)->fetch('product');
|
||||
$grantProducts = $this->loadModel('feedback')->getGrantProducts();
|
||||
return in_array($productID, array_keys($grantProducts));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user