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:
parent
141b359330
commit
185aee70df
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user