allow pms to be targetted at groups
This commit is contained in:
Sam
2013-05-02 15:15:17 +10:00
parent e59ab32210
commit 65cd00cf25
27 changed files with 176 additions and 61 deletions

View File

@ -12,10 +12,11 @@ Discourse.AdminDashboardController = Ember.Controller.extend({
problemsCheckInterval: '1 minute ago',
foundProblems: function() {
return(this.get('problems') && this.get('problems').length > 0);
return(Discourse.currentUser.admin && this.get('problems') && this.get('problems').length > 0);
}.property('problems'),
thereWereProblems: function() {
if(!Discourse.currentUser.admin) { return false }
if( this.get('foundProblems') ) {
this.set('hadProblems', true);
return true;