mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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:
parent
e59ab32210
commit
65cd00cf25
27 changed files with 176 additions and 61 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue