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
+1
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(