mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +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
|
@ -60,7 +60,7 @@ Discourse = Ember.Application.createWithMixins({
|
|||
if (user) {
|
||||
bus.callbackInterval = Discourse.SiteSettings.polling_interval;
|
||||
bus.enableLongPolling = true;
|
||||
if (user.admin) {
|
||||
if (user.admin || user.moderator) {
|
||||
bus.subscribe("/flagged_counts", function(data) {
|
||||
user.set('site_flagged_posts_count', data.total);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue