mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:34:09 +08:00
FIX: inject current user service in category model (#26937)
This commit is contained in:
parent
5d7aff12a7
commit
9bf763d03f
|
@ -1,5 +1,6 @@
|
|||
import { warn } from "@ember/debug";
|
||||
import { computed, get } from "@ember/object";
|
||||
import { service } from "@ember/service";
|
||||
import { on } from "@ember-decorators/object";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { NotificationLevels } from "discourse/lib/notification-levels";
|
||||
|
@ -421,6 +422,8 @@ export default class Category extends RestModel {
|
|||
}
|
||||
}
|
||||
|
||||
@service currentUser;
|
||||
|
||||
permissions = null;
|
||||
|
||||
@on("init")
|
||||
|
|
Loading…
Reference in New Issue
Block a user