mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
DEV: These routes don't exist anymore (#9823)
This commit is contained in:
@ -77,12 +77,6 @@ const AdminUser = User.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
revokeApiKey() {
|
|
||||||
return ajax(`/admin/users/${this.id}/revoke_api_key`, {
|
|
||||||
type: "DELETE"
|
|
||||||
}).then(() => this.set("api_key", null));
|
|
||||||
},
|
|
||||||
|
|
||||||
deleteAllPosts() {
|
deleteAllPosts() {
|
||||||
let deletedPosts = 0;
|
let deletedPosts = 0;
|
||||||
const user = this;
|
const user = this;
|
||||||
|
@ -120,7 +120,6 @@ Discourse::Application.routes.draw do
|
|||||||
put "unsuspend"
|
put "unsuspend"
|
||||||
put "revoke_admin", constraints: AdminConstraint.new
|
put "revoke_admin", constraints: AdminConstraint.new
|
||||||
put "grant_admin", constraints: AdminConstraint.new
|
put "grant_admin", constraints: AdminConstraint.new
|
||||||
post "generate_api_key", constraints: AdminConstraint.new
|
|
||||||
put "revoke_moderation", constraints: AdminConstraint.new
|
put "revoke_moderation", constraints: AdminConstraint.new
|
||||||
put "grant_moderation", constraints: AdminConstraint.new
|
put "grant_moderation", constraints: AdminConstraint.new
|
||||||
put "approve"
|
put "approve"
|
||||||
|
Reference in New Issue
Block a user