mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Add Suspend User to flags page
This commit is contained in:
@ -350,13 +350,21 @@ export default function() {
|
||||
|
||||
this.get('/tag_groups', () => response(200, {tag_groups: []}));
|
||||
|
||||
this.get('/admin/users/1234.json', request => {
|
||||
this.get('/admin/users/1234.json', () => {
|
||||
return response(200, {
|
||||
id: 1234,
|
||||
username: 'regular',
|
||||
});
|
||||
});
|
||||
|
||||
this.get('/admin/users/2.json', () => {
|
||||
return response(200, {
|
||||
id: 2,
|
||||
username: 'sam',
|
||||
admin: true
|
||||
});
|
||||
});
|
||||
|
||||
this.post('/admin/users/:user_id/generate_api_key', success);
|
||||
this.delete('/admin/users/:user_id/revoke_api_key', success);
|
||||
this.delete('/admin/users/:user_id.json', () => response(200, { deleted: true }));
|
||||
|
Reference in New Issue
Block a user