mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:21:23 +08:00
Don't show approval on admin user page if the site doesn't require approval of users (must_approve_users)
This commit is contained in:
@ -22,5 +22,9 @@ Discourse.AdminUserController = Discourse.ObjectController.extend({
|
||||
});
|
||||
|
||||
this.toggleTitleEdit();
|
||||
}
|
||||
},
|
||||
|
||||
showApproval: function() {
|
||||
return Discourse.SiteSettings.must_approve_users;
|
||||
}.property()
|
||||
});
|
||||
|
Reference in New Issue
Block a user