|
@@ -372,7 +372,7 @@ function template_modify_board()
|
|
if (empty($modSettings['deny_boards_access']))
|
|
if (empty($modSettings['deny_boards_access']))
|
|
echo '
|
|
echo '
|
|
<label for="groups_', $group['id'], '">
|
|
<label for="groups_', $group['id'], '">
|
|
- <input type="checkbox" name="groups[', $group['id'], ']" value="allow" id="groups_', $group['id'], '"', $group['allow'] ? ' checked="checked"' : '', ' class="input_check" />
|
|
|
|
|
|
+ <input type="checkbox" name="groups[', $group['id'], ']" value="allow" id="groups_', $group['id'], '"', in_array($group['id'], $context['board_managers']) ? ' checked disabled' : ($group['allow'] ? ' checked' : ''), ' class="input_check" />
|
|
<span', $group['is_post_group'] ? ' class="post_group" title="' . $txt['mboards_groups_post_group'] . '"' : ($group['id'] == 0 ? ' class="regular_members" title="' . $txt['mboards_groups_regular_members'] . '"' : ''), '>
|
|
<span', $group['is_post_group'] ? ' class="post_group" title="' . $txt['mboards_groups_post_group'] . '"' : ($group['id'] == 0 ? ' class="regular_members" title="' . $txt['mboards_groups_regular_members'] . '"' : ''), '>
|
|
', $group['name'], '
|
|
', $group['name'], '
|
|
</span>
|
|
</span>
|
|
@@ -388,13 +388,13 @@ function template_modify_board()
|
|
</label>
|
|
</label>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="radio" name="groups[', $group['id'], ']" value="allow" id="groups_', $group['id'], '_a"', $group['allow'] ? ' checked="checked"' : '', ' class="input_radio" />
|
|
|
|
|
|
+ <input type="radio" name="groups[', $group['id'], ']" value="allow" id="groups_', $group['id'], '_a"', in_array($group['id'], $context['board_managers']) ? ' checked disabled' : ($group['allow'] ? ' checked' : ''), ' class="input_radio" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="radio" name="groups[', $group['id'], ']" value="ignore" id="groups_', $group['id'], '_x"', !$group['allow'] && !$group['deny'] ? ' checked="checked"' : '', ' class="input_radio" />
|
|
|
|
|
|
+ <input type="radio" name="groups[', $group['id'], ']" value="ignore" id="groups_', $group['id'], '_x"', in_array($group['id'], $context['board_managers']) ? ' disabled' : (!$group['allow'] && !$group['deny'] ? ' checked' : ''), ' class="input_radio" />
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input type="radio" name="groups[', $group['id'], ']" value="deny" id="groups_', $group['id'], '_d"', $group['deny'] ? ' checked="checked"' : '', ' class="input_radio" />
|
|
|
|
|
|
+ <input type="radio" name="groups[', $group['id'], ']" value="deny" id="groups_', $group['id'], '_d"', in_array($group['id'], $context['board_managers']) ? ' disabled' : ($group['deny'] ? ' checked' : ''), ' class="input_radio" />
|
|
</td>
|
|
</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>';
|
|
</tr>';
|