fix: correct global admin tenant RFC

This commit is contained in:
Consultoria AS
2026-01-25 01:38:38 +00:00
parent 69efb585d3
commit 2dd22ec152

View File

@@ -4,7 +4,7 @@ import { AppError } from '../utils/errors.js';
import { prisma } from '../config/database.js';
// RFC del tenant administrador global
const ADMIN_TENANT_RFC = 'AASI940812GM6';
const ADMIN_TENANT_RFC = 'CAS2408138W2';
async function isGlobalAdmin(req: Request): Promise<boolean> {
if (req.user!.role !== 'admin') return false;