From 867b75bff05ad2e3a52b02d2d0146c7efaadf58a Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 29 Dec 2015 14:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/AuthorController.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index e88c71ee..da952eac 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 en.geonetworkmetadata gn - where gn.id=?"; - $sth=$this->db->prepare($sql); - $sth->execute(array($id)); - $row=$sth->fetch(); - if (!empty($row)) - { - $data = array("error"=>'Wrong path.'); - $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));