Users are unable to see invite details

Issue: Users are not able to see the invite details tabs, only staff can

Reason discourse/frontend/discourse/app/routes/user-invited.js at main · discourse/discourse · GitHub

    const can_see_invite_details =
      this.currentUser.staff ||
      this.controllerFor("user").id === this.currentUser?.id;

    controller.setProperties({
      can_see_invite_details,
    });

There is no this.controllerFor("user") - this should be this.modelFor("user")

2 Likes

Thanks for the report, this will fix it!

3 Likes