new features
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user