FIX: moderators need to choose a category when uncategorized topics are no allowed

This commit is contained in:
Neil Lalonde 2015-10-20 15:55:17 -04:00
parent 3ee1dee3eb
commit 976692b387

View File

@ -201,7 +201,7 @@ const Composer = RestModel.extend({
return this.get('canCategorize') && return this.get('canCategorize') &&
!this.siteSettings.allow_uncategorized_topics && !this.siteSettings.allow_uncategorized_topics &&
!this.get('categoryId') && !this.get('categoryId') &&
!this.user.get('staff'); !this.user.get('admin');
} }
}.property('loading', 'canEditTitle', 'titleLength', 'targetUsernames', 'replyLength', 'categoryId', 'missingReplyCharacters'), }.property('loading', 'canEditTitle', 'titleLength', 'targetUsernames', 'replyLength', 'categoryId', 'missingReplyCharacters'),