Add specs for topic create with auto_close_time. Just ignore auto_close_time from users who are not authorized to use it instead of raising an error.

This commit is contained in:
Neil Lalonde
2013-11-28 11:06:04 -05:00
parent 617a605ca2
commit 1cc72d564f
5 changed files with 52 additions and 7 deletions
@@ -339,7 +339,7 @@ Discourse.Utilities = {
return t.add('days', 1).toJSON();
}
} else {
return arg;
return (arg === '' ? null : arg);
}
}
}
@@ -443,7 +443,6 @@ Discourse.Composer = Discourse.Model.extend({
postStream = this.get('topic.postStream'),
addedToStream = false;
// Build the post object
var createdPost = Discourse.Post.create({
raw: this.get('reply'),