DEV: Fix usage of deprecated global

This commit is contained in:
Rafael dos Santos Silva 2020-06-04 17:30:26 -03:00
parent 5b99fd5bbd
commit 4ded0bdba9
No known key found for this signature in database
GPG Key ID: 5E50360227B34938

View File

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