New Bug With Experimental Impersonation Interface

Hello! I would like to report this bug I found, where if you try to exit out of the new experimental impersonation feature, it tells me that the requested URL or resource can’t be found.

Proof:

2 Likes

By the way, this is what I was using for this.

1 Like

Thanks for the report, will have a quick look since I worked on this area recently :eyes:

3 Likes

Welcome to Meta :wave:

How long did you impersonate the user? I noticed something similar and I think it was related to me doing something else in between, so I impersonated them for longer than 15 minutes. I think impersonation is terminated then, but the interface doesn’t reflect that. After a reload, I was always back at my admin account.

2 Likes

I’ve found the issue and I’m working on a fix, it’s just a bug with the change to use upcoming changes. I’m checking if the current user (AKA the impersonated user) can impersonate when stopping the impersonation, rather than the acting user (the admin).

This only happens when Staff is used for the upcoming change “Enabled for”

4 Likes

Ohhh, so it’s a bug with making it staff only, since impersonated user isn’t staff?

2 Likes

Then my issue is a different one. I selected “everyone” and the user I impersonated was a moderator.

2 Likes

Yes, with Everyone it doesn’t matter, but for Staff then it will check the current user is in the staff group (which, unless you impersonate an admin or moderator, they won’t be).

Yes there is a hidden experimental_impersonation_time_limit_minutes setting set to 15 minutes. I’m not super familiar with this system, but definitely would be a nicer experience if we auto-refreshed/updated the UI once you pass this limit, or at least indicate it somewhere.

3 Likes

I am not sure if it was because 15 minutes had passed, but it’s not unlikely. I didn’t want to wait another 15 minutes to verify. I was more focused on how editing categories worked for the moderator than on the impersonation feature.

But I think the error in the browser console was something that refered to the timer

3 Likes

Fix incoming here:

4 Likes

Will this automatically update the discourse forum? Because when I just tested it, it looks like the changes aren’t in effect.

1 Like

If you’re hosted with discourse.org updates are done periodically, so once a fix is made it can be anywhere from a couple days to a couple weeks before you get it. At the bottom of your /admin page you can see when your site was last updated.

1 Like

I just deployed your site, fix should be available in about 30 minutes from now :slight_smile:

2 Likes

Thank you! It now works.

1 Like