diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 8ac314f6..a40b0244 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -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; + } // 保存数据作者信息