플래닛의 권한 관리 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4891 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-19 04:04:12 +00:00
parent 36d8d97ad9
commit dee1a23dc1
4 changed files with 14 additions and 2 deletions

View file

@ -37,6 +37,9 @@
if($this->planet->isHome() && !in_array($this->act, array('dispPlanetCreate','dispPlanetLogin','dispPlanetTagSearch','dispPlanetContentSearch','dispPlanetContentTagSearch')) ) {
Context::set('act',$this->act = 'dispPlanetHome');
}
$this->grant->access = $oPlanetModel->isAccessGranted();
$this->grant->create = $oPlanetModel->isCreateGranted();
}
/**
@ -347,6 +350,13 @@
Context::set('reply_list',$output->data);
}
function dispPlanetMessage($msg_code) {
$msg = Context::getLang($msg_code);
if(!$msg) $msg = $msg_code;
Context::set('message', $msg);
$this->setTemplateFile('message');
}
}
?>