kusanagy

RBAC TrinityCore CMS

Feb 2nd, 2018
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. You have a new Trinity RBAC system. CMS the old system
  2.  
  3. ...\application\models\external_account_model.php
  4.  
  5. comment out code
  6. Code:
  7.         // Fix for TrinityCore RBAC (or any emulator with 'rbac' in it's emulator filename)
  8.         /*if(preg_match("/rbac/i", get_class($this->realms->getEmulator())))
  9.         {
  10.             $userId = $this->user->getId($username);
  11.             $this->connection->query("INSERT INTO rbac_account_groups(`accountId`, `groupId`, `realmId`) values (?, 1, -1)", array($userId));
  12.         }*/
Advertisement
Add Comment
Please, Sign In to add comment