mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:03:45 +08:00
FIX: Only show warning creation to staff. Server side was OK.
This commit is contained in:
parent
334e21a03a
commit
7d6f3a5089
|
@ -16,6 +16,8 @@ export default DiscourseController.extend({
|
|||
}.on('init'),
|
||||
|
||||
showWarning: function() {
|
||||
if (!Discourse.User.currentProp('staff')) { return false; }
|
||||
|
||||
var usernames = this.get('model.targetUsernames');
|
||||
|
||||
// We need exactly one user to issue a warning
|
||||
|
|
Loading…
Reference in New Issue
Block a user