FIX: inject current user service in category model (#26937)

This commit is contained in:
Joffrey JAFFEUX 2024-05-08 14:09:00 +02:00 committed by GitHub
parent 5d7aff12a7
commit 9bf763d03f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")