change limitation

This commit is contained in:
wlx 2013-04-26 08:08:31 +00:00
parent 33d84305fc
commit 3130e6f665
1 changed files with 4 additions and 4 deletions

View File

@ -125,10 +125,10 @@ class SubmitController extends Zend_Controller_Action
// 1. 权限认定当前用户必须和其owner相同
// 数据应当没有评审状态,没有作者信息
$sql="select gn.id from geonetworkmetadata gn
left join mdstatus s on gn.uuid=s.uuid
left join mdauthor a on s.uuid=a.uuid
where s.id is not null and a.id is not null and gn.id=?";
$sql="select gn.id from geonetworkmetadata gn
left join mdstatus s on gn.uuid=s.uuid
left join mdauthor a on s.uuid=a.uuid
where (s.id is not null or a.id is not null) and gn.id=?";
$sth=$this->db->prepare($sql);
$sth->execute(array($id));
$row=$sth->fetch();