What happened?
Description
When trying to login as another through the cp, you get redirect to the /admin url even when the user doesn't have permissions to view the CP
Steps to reproduce
- login to the CP
- go to a user that doesn't have cp permissions
- click sign in as
- you get directed to craftcms.com/admin
- you get an unauthorized error banner
Expected behavior
get redirected to the homepage when the user has no cp permissions
Actual behavior
- you get directed to craftcms.com/admin
- you get an unauthorized error banner
Craft CMS version
5.2.9
PHP version
8.3
Operating system and version
Ubuntu 24.04
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
When trying to login as another through the cp, you get redirect to the /admin url even when the user doesn't have permissions to view the CP
Steps to reproduce
Expected behavior
get redirected to the homepage when the user has no cp permissions
Actual behavior
Craft CMS version
5.2.9
PHP version
8.3
Operating system and version
Ubuntu 24.04
Database type and version
No response
Image driver and version
No response
Installed plugins and versions