浏览代码

Fix Forum\UpdateUsername

Visman 4 年之前
父节点
当前提交
0274ac5b06
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Forum/UpdateUsername.php

+ 1 - 1
app/Models/Forum/UpdateUsername.php

@@ -30,7 +30,7 @@ class UpdateUsername extends Action
 
         $this->c->DB->exec($query, $vars);
 
-        $forums = $this->c->ForumManager->init($this->c->GROUP_ADMIN)->get(0)->descendants;
+        $forums = $this->c->ForumManager->init($this->c->groups->get($this->c->GROUP_ADMIN))->get(0)->descendants;
 
         foreach ($forums as $forum) {
             if ($user->isModerator($forum)) {