Exemple #1
0
 /**
  * 多服务器检测权限
  */
 protected function _checkOperatorsAct()
 {
     $this->_utilMsg = $this->_getGlobalData('Util_Msg', 'object');
     $this->_utilRbac = $this->_getGlobalData('Util_Rbac', 'object');
     $this->_view->assign('operatorList', $this->_utilRbac->getOperatorActList(self::GAME_ID));
     if (count($_REQUEST['server_ids'])) {
         foreach ($_REQUEST['server_ids'] as $value) {
             if (!$this->_utilRbac->checkOperatorAct($value)) {
                 $this->_utilMsg->showMsg(Tools::getLang('NOT_ACTSERVER', 'Common'), -2);
             }
         }
     }
 }