添加缺失代码
This commit is contained in:
parent
c6fa92aea9
commit
d4f7c09969
|
@ -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;
|
||||
}
|
||||
|
||||
// 保存数据作者信息
|
||||
|
||||
|
|
Loading…
Reference in New Issue