1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: only ADMIN can list all users

This commit is contained in:
Ivar Conradi Østhus 2021-04-22 12:13:41 +02:00
parent 05abb7e295
commit 4b10356325
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -21,7 +21,7 @@ export default class UserAdminController extends Controller {
this.accessService = accessService;
this.logger = config.getLogger('routes/user-controller.ts');
this.get('/', this.getUsers);
this.get('/', this.getUsers, ADMIN);
this.get('/search', this.search);
this.post('/', this.createUser, ADMIN);
this.post('/validate-password', this.validatePassword);