Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-02-17 15:00:24 +03:00
parent 00fc69601e
commit eff80a3211
2 changed files with 9 additions and 1 deletions

View File

@@ -897,6 +897,14 @@ func AuthzGuardByRoute(pg *sql.DB) func(http.Handler) http.Handler {
return return
} }
// Self permission endpoints are required right after login
// to hydrate UI permission state for the authenticated user.
switch pathTemplate {
case "/api/permissions/routes", "/api/permissions/effective":
next.ServeHTTP(w, r)
return
}
// ===================================================== // =====================================================
// 3⃣ ROUTE LOOKUP (path + method) // 3⃣ ROUTE LOOKUP (path + method)
// ===================================================== // =====================================================

View File

@@ -446,7 +446,7 @@ func getOrderHeaderFromDB(db *sql.DB, orderID string) (*OrderHeader, error) {
ISNULL(( ISNULL((
SELECT TOP (1) ca.AttributeDescription SELECT TOP (1) ca.AttributeDescription
FROM BAGGI_V3.dbo.cdCurrAccAttributeDesc AS ca WITH (NOLOCK) FROM BAGGI_V3.dbo.cdCurrAccAttributeDesc AS ca WITH (NOLOCK)
WHERE ca.CurrAccTypeCode = 3 WHERE ca.CurrAccTypeCode IN (1,3)
AND ca.AttributeTypeCode = 2 -- 🟡 Müşteri Temsilcisi AND ca.AttributeTypeCode = 2 -- 🟡 Müşteri Temsilcisi
AND ca.AttributeCode = f.CustomerAtt02 AND ca.AttributeCode = f.CustomerAtt02
AND ca.LangCode = 'TR' AND ca.LangCode = 'TR'