1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: /api/admin/user should not allow caching

This commit is contained in:
Ivar Conradi Østhus 2021-05-04 21:33:32 +02:00
parent 141b359330
commit 185aee70df
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -54,6 +54,7 @@ class UserController extends Controller {
}
async getUser(req: IAuthRequest, res: Response): Promise<void> {
res.setHeader('cache-control', 'no-store');
const { user } = req;
if (user) {
const permissions = await this.accessService.getPermissionsForUser(