mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-02-17 08:55:05 +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")
|
||||
showToGroups(groups) {
|
||||
const currentUser = Discourse.User.current();
|
||||
const currentUser = this.currentUser;
|
||||
|
||||
if (
|
||||
!currentUser ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user