diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index d6609c8d..f94d7084 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -2337,19 +2337,6 @@ class AuthorController extends Zend_Controller_Action } // 1. 权限认定:当前用户必须和其owner相同 - // 数据应当没有评审状态,没有作者信息, 此两项信息使用条件插入,省略判断。 - $sql="select gn.id from geonetworkmetadata gn - where gn.id=?"; - $sth=$this->db->prepare($sql); - $sth->execute(array($id)); - $row=$sth->fetch(); - if (!empty($row)) - { - $data = array("error"=>'错误的入口'); - $this->jsonexit($data); - return true; - } - $sql="select uuid,data from metadata where id=? and owner=?"; $sth=$this->wdb->prepare($sql); $sth->execute(array($id,$u_id));