FIX: Only show warning creation to staff. Server side was OK.

This commit is contained in:
Robin Ward 2014-09-08 11:22:11 -04:00
parent 334e21a03a
commit 7d6f3a5089
1 changed files with 2 additions and 0 deletions

View File

@ -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