mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 11:01:11 +08:00
FIX: add link to user profile for staged users
This commit is contained in:
@ -9,6 +9,8 @@ const AdminUser = Discourse.User.extend({
|
||||
customGroups: Em.computed.filter("groups", (g) => !g.automatic && Group.create(g)),
|
||||
automaticGroups: Em.computed.filter("groups", (g) => g.automatic && Group.create(g)),
|
||||
|
||||
canViewProfile: Ember.computed.or("active", "staged"),
|
||||
|
||||
generateApiKey() {
|
||||
const self = this;
|
||||
return Discourse.ajax("/admin/users/" + this.get('id') + "/generate_api_key", {
|
||||
|
Reference in New Issue
Block a user