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:
parent
05abb7e295
commit
4b10356325
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user