mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
moderators now have teeth, more at http://meta.discourse.org/t/moderator-permission-set/6307/5
allow pms to be targetted at groups
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user