修复错误入口问题
This commit is contained in:
parent
580cb14fe5
commit
867b75bff0
|
@ -2337,19 +2337,6 @@ class AuthorController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. 权限认定:当前用户必须和其owner相同
|
// 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=?";
|
$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