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