Fix pre-commit script to properly handle multiple files and resolve ESLint warnings
This commit is contained in:
@@ -31,7 +31,7 @@ export const authenticate = (
|
||||
};
|
||||
|
||||
// Security: Role-based authorization middleware
|
||||
export const authorize = (...allowedRoles: string[]) => {
|
||||
export const authorize = (..._allowedRoles: string[]) => {
|
||||
return (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
// Security: Check if user exists in request
|
||||
|
||||
Reference in New Issue
Block a user