function _initialize() { parent::_initialize(); $VERSION = C(SYSVERSION); $uid = $this->getUid(); $username = $this->getName(); $groupId = $this->getGid(); if (!$groupId || !$uid) { $this->redirect('login', 'Public'); } //获取用户组ID权限 $security = D('Usergroup')->where('id=' . $groupId)->find(); if (!$security) { $this->error(L('_shuguang_appNotGroupSecurity')); } //未获取用户组ID权限,请联系系统管理员 //dump($security); $this->assign('charset', C(TEMPLATE_CHARSET)); $this->assign('version', $VERSION); $this->assign('uid', $uid); $this->assign('username', $username); $this->assign('security', $security); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('product'); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('scroll'); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('article'); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('member'); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('usergroup'); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('feedback'); }
function _initialize() { parent::_initialize(); $this->_checkSecurity('database'); }