添加缺失代码

This commit is contained in:
wlx 2012-09-06 08:54:08 +00:00
parent c6fa92aea9
commit d4f7c09969
1 changed files with 10 additions and 0 deletions

View File

@ -2772,6 +2772,16 @@ class Admin_DataController extends Zend_Controller_Action
// 1. 权限认定当前用户必须和其owner相同
// 数据应当没有评审状态,没有作者信息
$sql="select uuid,data from geonetworkmetadata where id=?";
$sth=$this->db->prepare($sql);
$sth->execute(array($id));
$row=$sth->fetch();
if (empty($row))
{
$data = array("error"=>'无权限修改数据');
$this->jsonexit($data);
return true;
}
// 保存数据作者信息