From c47a394a7b739c1c8346462e2e3750ee43dd0704 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Thu, 19 Feb 2026 22:54:42 +0100 Subject: [PATCH] fix: merchant-users page shows role from user.role instead of owned_merchants_count The Role column was deriving Owner/Team Member from owned_merchants_count which was unreliable. Now uses user.role directly (merchant_owner vs store_member) which is the source of truth after RBAC Phase 1. Co-Authored-By: Claude Opus 4.6 --- .../tenancy/templates/tenancy/admin/merchant-users.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/tenancy/templates/tenancy/admin/merchant-users.html b/app/modules/tenancy/templates/tenancy/admin/merchant-users.html index 8012426f..099a98a2 100644 --- a/app/modules/tenancy/templates/tenancy/admin/merchant-users.html +++ b/app/modules/tenancy/templates/tenancy/admin/merchant-users.html @@ -167,10 +167,10 @@ + x-text="user.role === 'merchant_owner' ? 'Merchant Owner' : 'Store Member'">