mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Delete unnecessary init() method in adminloggingController
This commit is contained in:
parent
25564913b8
commit
5c654c94b7
1 changed files with 0 additions and 16 deletions
|
|
@ -11,22 +11,6 @@
|
|||
*/
|
||||
class adminloggingController extends adminlogging
|
||||
{
|
||||
|
||||
/**
|
||||
* Initialization
|
||||
* @return void
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
// forbit access if the user is not an administrator
|
||||
$oMemberModel = getModel('member');
|
||||
$logged_info = $oMemberModel->getLoggedInfo();
|
||||
if($logged_info->is_admin != 'Y')
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\NotPermitted('admin.msg_is_not_administrator');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert log
|
||||
* @return void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue