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:
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:
Thanks for the report, will have a quick look since I worked on this area recently ![]()
Welcome to Meta ![]()
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.
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”
Ohhh, so it’s a bug with making it staff only, since impersonated user isn’t staff?
Then my issue is a different one. I selected “everyone” and the user I impersonated was a moderator.
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.
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
Fix incoming here:
Will this automatically update the discourse forum? Because when I just tested it, it looks like the changes aren’t in effect.