mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-02-20 02:29:31 +00:00
DEV: Fix usage of deprecated global
This commit is contained in:
parent
5b99fd5bbd
commit
4ded0bdba9
@ -40,7 +40,7 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
@discourseComputed("currentUser.groups")
|
@discourseComputed("currentUser.groups")
|
||||||
showToGroups(groups) {
|
showToGroups(groups) {
|
||||||
const currentUser = Discourse.User.current();
|
const currentUser = this.currentUser;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!currentUser ||
|
!currentUser ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user