Superadmin-rajoitus: moduulit, integraatiot ja IP-asetukset vain pääkäyttäjälle + captcha-sessiokorjaus
- Moduulit, integraatiot ja IP-rajoitukset piilotetaan yritysadminilta (vain superadmin näkee) - Saatavuus-API ja Telegram checkboxit tallentavat tilan heti muutoksessa - session_regenerate_id(false) estää race conditionin kirjautumisen jälkeen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
index.html
10
index.html
@@ -1597,8 +1597,8 @@
|
||||
<textarea id="company-edit-domains" rows="3" placeholder="intra.yritys.fi intra.toinen.fi" style="font-family:monospace;font-size:0.85rem;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Moduulit -->
|
||||
<div style="margin-bottom:1.5rem;">
|
||||
<!-- Moduulit (vain superadmin) -->
|
||||
<div id="company-modules-section" style="margin-bottom:1.5rem;display:none;">
|
||||
<h4 style="color:#0f3460;margin-bottom:0.5rem;font-size:0.95rem;">Käytössä olevat moduulit</h4>
|
||||
<p style="color:#888;font-size:0.82rem;margin-bottom:0.75rem;">Valitse mitkä välilehdet ovat käytössä tässä yrityksessä.</p>
|
||||
<div id="modules-checkboxes" style="display:flex;flex-direction:column;gap:0.4rem;">
|
||||
@@ -1640,8 +1640,8 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Integraatiot -->
|
||||
<div style="margin-bottom:1.5rem;">
|
||||
<!-- Integraatiot (vain superadmin) -->
|
||||
<div id="company-integrations-section" style="margin-bottom:1.5rem;display:none;">
|
||||
<h4 style="color:#0f3460;margin-bottom:0.5rem;font-size:0.95rem;">Integraatiot</h4>
|
||||
<p style="color:#888;font-size:0.82rem;margin-bottom:0.75rem;">Ota käyttöön ulkoiset integraatiot tälle yritykselle.</p>
|
||||
<div id="integrations-checkboxes" style="display:flex;flex-direction:column;gap:0.4rem;">
|
||||
@@ -1680,7 +1680,7 @@
|
||||
</div>
|
||||
<div id="company-zammad-result" style="margin-top:0.75rem;display:none;padding:0.75rem;border-radius:8px;font-size:0.85rem;"></div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-top:1rem;">
|
||||
<div id="company-allowed-ips-section" class="form-group" style="margin-top:1rem;display:none;">
|
||||
<label style="font-weight:600;font-size:0.9rem;">Sallitut IP-osoitteet</label>
|
||||
<textarea id="company-edit-allowed-ips" rows="3" style="font-family:monospace;font-size:0.85rem;" placeholder="192.168.1.100 10.0.0.0/8"></textarea>
|
||||
<small style="color:#888;">Yksi IP tai CIDR per rivi. "kaikki" = ei rajoitusta.</small>
|
||||
|
||||
Reference in New Issue
Block a user