new features

This commit is contained in:
Matthias Hochmeister
2026-03-23 18:45:23 +01:00
parent 1b13e4f89e
commit c1313ce52e

View File

@@ -1,5 +1,6 @@
import { Request, Response } from 'express'; import { Request, Response } from 'express';
import { permissionService } from '../services/permission.service'; import { permissionService } from '../services/permission.service';
import pool from '../config/database';
import logger from '../utils/logger'; import logger from '../utils/logger';
class PermissionController { class PermissionController {
@@ -252,7 +253,6 @@ class PermissionController {
const userId = req.params.userId as string; const userId = req.params.userId as string;
// Fetch user's Authentik groups from DB // Fetch user's Authentik groups from DB
const { pool } = await import('../config/database');
const userResult = await pool.query( const userResult = await pool.query(
'SELECT authentik_groups, email, name FROM users WHERE id = $1', 'SELECT authentik_groups, email, name FROM users WHERE id = $1',
[userId] [userId]