修复错误入口问题

This commit is contained in:
wlx 2015-12-29 14:43:54 +08:00
parent 352980fc86
commit c0b8655372
1 changed files with 0 additions and 13 deletions

View File

@ -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));