mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
type less words
This commit is contained in:
parent
4bfca12b11
commit
4aed506917
1 changed files with 3 additions and 3 deletions
|
@ -2,13 +2,13 @@ export default Ember.ArrayController.extend({
|
||||||
showAdminLinks: Em.computed.alias("currentUser.staff"),
|
showAdminLinks: Em.computed.alias("currentUser.staff"),
|
||||||
|
|
||||||
allowAnon: function(){
|
allowAnon: function(){
|
||||||
return Discourse.SiteSettings.allow_anonymous_posting &&
|
return this.siteSettings.allow_anonymous_posting &&
|
||||||
(Discourse.User.currentProp("trust_level") >= Discourse.SiteSettings.anonymous_posting_min_trust_level ||
|
(this.get("currentUser.trust_level") >= this.siteSettings.anonymous_posting_min_trust_level ||
|
||||||
this.get("isAnon"));
|
this.get("isAnon"));
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
isAnon: function(){
|
isAnon: function(){
|
||||||
return Discourse.User.currentProp("is_anonymous");
|
return this.get("currentUser.is_anonymous");
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue