修复错误入口问题
This commit is contained in:
parent
6a59a692f2
commit
1557a91e89
|
@ -2337,19 +2337,6 @@ class AuthorController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. 权限认定:当前用户必须和其owner相同
|
// 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=?";
|
$sql="select uuid,data from metadata where id=? and owner=?";
|
||||||
$sth=$this->wdb->prepare($sql);
|
$sth=$this->wdb->prepare($sql);
|
||||||
$sth->execute(array($id,$u_id));
|
$sth->execute(array($id,$u_id));
|
||||||
|
|
Loading…
Reference in New Issue