mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
fix: /api/admin/user should not allow caching
This commit is contained in:
parent
141b359330
commit
185aee70df
@ -54,6 +54,7 @@ class UserController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getUser(req: IAuthRequest, res: Response): Promise<void> {
|
async getUser(req: IAuthRequest, res: Response): Promise<void> {
|
||||||
|
res.setHeader('cache-control', 'no-store');
|
||||||
const { user } = req;
|
const { user } = req;
|
||||||
if (user) {
|
if (user) {
|
||||||
const permissions = await this.accessService.getPermissionsForUser(
|
const permissions = await this.accessService.getPermissionsForUser(
|
||||||
|
Loading…
Reference in New Issue
Block a user