Describe the bug
It used to be possible for a NAV administrator to operate as the anonymous user (just as any other user) by selecting the default account from the * User and API Administration * tool and clicking the "Operate as this user" button.
This currently the only way to modify the default dashboard, the dashboard that is shown to all anonymous users, and which also serves as the template dashboard for all new user accounts.
Currently, clicking the "Operate as this user" button on the default account causes the administrator to be logged out of the system entirely, resulting in the inability to edit the default dashboard.
To Reproduce
Steps to reproduce the behavior:
- Log in to NAV as an administrator
- Click on
Toolbox → User and API Administration
- Click on the
default account in the account list
- Click on the
Operate as this user button on the account page
- Observe that the user has now been logged out.
Expected behavior
When clicking Operate as this user on the default account, the user session should enter "sudo mode": The user should be taken to the NAV front page, and the sudo banner should be displayed on top of every page (this screenshot shows the banner for a test user, not the default user):
Environment (please complete the following information):
- NAV version installed: 5.14.1
Additional context
It is unclear at this point which version of NAV broke this functionality, but I suspect it might be one of the recent changes to move towards using Django's authentication/authorization system.
Describe the bug
It used to be possible for a NAV administrator to operate as the anonymous user (just as any other user) by selecting the
defaultaccount from the * User and API Administration * tool and clicking the "Operate as this user" button.This currently the only way to modify the default dashboard, the dashboard that is shown to all anonymous users, and which also serves as the template dashboard for all new user accounts.
Currently, clicking the "Operate as this user" button on the
defaultaccount causes the administrator to be logged out of the system entirely, resulting in the inability to edit the default dashboard.To Reproduce
Steps to reproduce the behavior:
Toolbox → User and API Administrationdefaultaccount in the account listOperate as this userbutton on the account pageExpected behavior
When clicking
Operate as this useron thedefaultaccount, the user session should enter "sudo mode": The user should be taken to the NAV front page, and the sudo banner should be displayed on top of every page (this screenshot shows the banner for a test user, not the default user):Environment (please complete the following information):
Additional context
It is unclear at this point which version of NAV broke this functionality, but I suspect it might be one of the recent changes to move towards using Django's authentication/authorization system.