Update more modules to throw exceptions

This commit is contained in:
Kijin Sung 2018-09-05 23:12:08 +09:00
parent c1cbc5dbdb
commit be1ce69073
21 changed files with 142 additions and 116 deletions

View file

@ -131,7 +131,7 @@ class pageAdminController extends page
{
$module_srl = Context::get('module_srl');
$content = Context::get('content');
if(!$module_srl) return $this->setError('msg_invalid_request');
if(!$module_srl) throw new Rhymix\Framework\Exceptions\InvalidRequest;
$mcontent = Context::get('mcontent');
$type = Context::get('type');
// Guhaeom won information page
@ -301,7 +301,7 @@ class pageAdminController extends page
if(!$grant->manager)
{
return $this->setError('msg_not_permitted');
throw new Rhymix\Framework\Exceptions\NotPermitted;
}
$obj = Context::getRequestVars();