取消提交后的只读处理,减少错误处理
This commit is contained in:
parent
4e42811648
commit
d26a1b258b
|
@ -465,7 +465,7 @@ class HeiheController extends DataController
|
||||||
$sql="select gn.id from geonetworkmetadata gn
|
$sql="select gn.id from geonetworkmetadata gn
|
||||||
left join mdstatus s on gn.uuid=s.uuid
|
left join mdstatus s on gn.uuid=s.uuid
|
||||||
left join mdauthor a on s.uuid=a.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=?";
|
where (s.id is not null or a.id is not null) and gn.id=?";
|
||||||
$sth=$this->db->prepare($sql);
|
$sth=$this->db->prepare($sql);
|
||||||
$sth->execute(array($id));
|
$sth->execute(array($id));
|
||||||
$row=$sth->fetch();
|
$row=$sth->fetch();
|
||||||
|
@ -509,7 +509,7 @@ class HeiheController extends DataController
|
||||||
if(!empty($row1['passwd']))
|
if(!empty($row1['passwd']))
|
||||||
{
|
{
|
||||||
$old=umask(0);
|
$old=umask(0);
|
||||||
$this->chmodr($row1['homedir'],0444);
|
//$this->chmodr($row1['homedir'],1444);
|
||||||
umask($old);
|
umask($old);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue