From 693c1d05d78bf6ba459264f35d84b43d10249705 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Mon, 2 Feb 2026 14:30:28 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20ensure=20write=20permission=20check=20on?= =?UTF-8?q?=20admin=20pricing=20page=20load\n\n-=20Added=20explicit=20chec?= =?UTF-8?q?kWritePermission()=20call=20when=20admin=20pricing=20page=20loa?= =?UTF-8?q?ds\n-=20Ensures=20'=D0=90=D0=B4=D0=BC=D0=B8=D0=BD=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D1=82=D0=BE=D1=80=20=D1=86=D0=B5=D0=BD'=20li?= =?UTF-8?q?nk=20and=20username=20are=20properly=20displayed\n-=20Fixes=20i?= =?UTF-8?q?ssue=20where=20these=20elements=20disappeared=20when=20navigati?= =?UTF-8?q?ng=20to=20admin=20pricing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/templates/admin_pricing.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/templates/admin_pricing.html b/web/templates/admin_pricing.html index 0618a30..c39020b 100644 --- a/web/templates/admin_pricing.html +++ b/web/templates/admin_pricing.html @@ -891,6 +891,9 @@ document.addEventListener('DOMContentLoaded', () => { const initialTab = urlParams.get('tab') || 'alerts'; loadTab(initialTab); + // Check write permission for admin pricing link + checkWritePermission(); + // Add event listeners for preview updates document.getElementById('modal-period').addEventListener('change', fetchPreview); document.getElementById('modal-coefficient').addEventListener('input', debounceFetchPreview);