Browse Source

* Moderators are not available for forum-link.

Visman 6 năm trước cách đây
mục cha
commit
2af5aede78
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/Pages/Profile/Mod.php

+ 1 - 1
app/Models/Pages/Profile/Mod.php

@@ -132,7 +132,7 @@ class Mod extends Profile
                     'type'     => 'checkbox',
                     'value'    => $forum->id,
                     'checked'  => isset($this->curForums[$forum->id]) && $this->curUser->isModerator($forum),
-                    'disabled' => ! isset($this->curForums[$forum->id]),
+                    'disabled' => ! isset($this->curForums[$forum->id]) || '' != $this->curForums[$forum->id]->redirect_url,
                     'caption'  => \ForkBB\__('Moderator label'),
                 ];
                 $form['sets']["forum{$forum->id}"] = [