mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
DEV: Remove Discourse.Site in favor of import (#8344)
* DEV: Remove Discourse.Site in favor of importing Site * Ran prettier
This commit is contained in:

committed by
Robin Ward

parent
d2b3ac1282
commit
3c5df82590
@ -26,6 +26,7 @@ import Category from "discourse/models/category";
|
||||
import { Promise } from "rsvp";
|
||||
import { getProperties } from "@ember/object";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
import Site from "discourse/models/site";
|
||||
|
||||
export const SECOND_FACTOR_METHODS = {
|
||||
TOTP: 1,
|
||||
@ -200,7 +201,7 @@ const User = RestModel.extend({
|
||||
|
||||
@discourseComputed("trust_level")
|
||||
trustLevel(trustLevel) {
|
||||
return Discourse.Site.currentProp("trustLevels").findBy(
|
||||
return Site.currentProp("trustLevels").findBy(
|
||||
"id",
|
||||
parseInt(trustLevel, 10)
|
||||
);
|
||||
|
Reference in New Issue
Block a user