feat: Add missing middleware checks to admin app auth clients
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Router } from 'express';
|
||||
import { authenticateUser } from '../../../../helpers/authentication.js';
|
||||
import { authorizeUser } from '../../../../helpers/authorization.js';
|
||||
import getAdminAppAuthClientsAction from '../../../../controllers/api/v1/admin/app-auth-clients/get-app-auth-client.js';
|
||||
|
||||
const router = Router();
|
||||
@@ -8,7 +7,8 @@ const router = Router();
|
||||
router.get(
|
||||
'/:appAuthClientId',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
authorizeAdmin,
|
||||
checkIsEnterprise,
|
||||
getAdminAppAuthClientsAction
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user