we should be able to switch out of anon

This commit is contained in:
Sam 2015-04-07 18:19:43 +10:00
parent f5d89169e2
commit be27fca904

View file

@ -3,7 +3,8 @@ export default Ember.ArrayController.extend({
allowAnon: function(){ allowAnon: function(){
return Discourse.SiteSettings.allow_anonymous_posting && return Discourse.SiteSettings.allow_anonymous_posting &&
Discourse.User.currentProp("trust_level") >= Discourse.SiteSettings.anonymous_posting_min_trust_level; (Discourse.User.currentProp("trust_level") >= Discourse.SiteSettings.anonymous_posting_min_trust_level ||
this.get("isAnon"));
}.property(), }.property(),
isAnon: function(){ isAnon: function(){