2023-12-11 15:18:43 +00:00
|
|
|
{% import "../macros/staff-nav.html" as staff_nav %}
|
|
|
|
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Oprávnění ({{ account.username }}){% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1 class="title">Oprávnění ({{ account.username }})</h1>
|
2023-12-25 13:53:44 +00:00
|
|
|
{% call staff_nav::staff_nav() %}
|
2023-12-11 15:18:43 +00:00
|
|
|
<hr>
|
|
|
|
{% if account.perms().owner() %}
|
|
|
|
<h2 class="title">Tento uživatel je vlastník, změny nebudou mít žádný vliv.</h2>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
|
|
|
<form method="post" action="/staff/actions/update-permissions">
|
|
|
|
<input name="account" type="hidden" value="{{ account.username }}">
|
|
|
|
|
|
|
|
<table class="form-table">
|
|
|
|
<tr>
|
|
|
|
<td class="label">Upravit příspěvky</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="edit_posts" type="checkbox"{% if account.perms().edit_posts() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Spravovat příspěvky</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="manage_posts" type="checkbox"{% if account.perms().manage_posts() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Používat capcode</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="capcodes" type="checkbox"{% if account.perms().capcodes() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2024-01-15 15:06:25 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Vlastní capcode</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="custom_capcodes" type="checkbox"{% if account.perms().custom_capcodes() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2023-12-11 15:18:43 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Záznamy</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="staff_log" type="checkbox"{% if account.perms().staff_log() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Hlášení</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="reports" type="checkbox"{% if account.perms().reports() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Bany</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="bans" type="checkbox"{% if account.perms().bans() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2023-12-16 12:51:50 +00:00
|
|
|
<td class="label">Bannery</td>
|
2023-12-11 15:18:43 +00:00
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
2023-12-16 12:51:50 +00:00
|
|
|
<input name="banners" type="checkbox"{% if account.perms().banners() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
2023-12-11 15:18:43 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Nastavení nástěnek</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="board_config" type="checkbox"{% if account.perms().board_config() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2024-01-15 15:06:25 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Novinky</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="news" type="checkbox"{% if account.perms().news() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2024-01-20 13:35:20 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Uklízečtext (pravý redtext)</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="jannytext" type="checkbox"{% if account.perms().jannytext() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2024-02-18 19:25:38 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Zobrazit IP adresy</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="view_ips" type="checkbox"{% if account.perms().view_ips() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2023-12-11 15:18:43 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Obejít ban</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="bypass_bans" type="checkbox"{% if account.perms().bypass_bans() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Obejít uzamčení nástěnky</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="bypass_board_lock" type="checkbox"{% if account.perms().bypass_board_lock() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Obejít uzamčení vlákna</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="bypass_thread_lock" type="checkbox"{% if account.perms().bypass_thread_lock() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="label">Obejít CAPTCHA</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="bypass_captcha" type="checkbox"{% if account.perms().bypass_captcha() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2024-01-15 15:06:25 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Obejít antispam</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-wrapper">
|
|
|
|
<input name="bypass_antispam" type="checkbox"{% if account.perms().bypass_antispam() %} checked="checked"{% endif %}{% if !tcx.perms.owner() %} disabled=""{% endif %}>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2023-12-11 15:18:43 +00:00
|
|
|
{% if tcx.perms.owner() %}
|
|
|
|
<tr>
|
2024-01-15 15:06:25 +00:00
|
|
|
<td colspan="2"><input class="button" type="submit" value="Uložit"></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|