Rocket.Chat
Rocket.Chat copied to clipboard
Feature Request: Show Preferences when Accounts_AllowUserProfileChange is false
Description:
PR #25632 (commit 813883181) shows the NotAuthorizedPage if Accounts_AllowUserProfileChange is false. This leads to an awkward user experience, as the user thinks he does not have access to any of his preferences:
A better UI/UX would be to redirect the user to the Preferences tab (the first visible tab in the navbar)
Steps to reproduce:
- As an admin, go to /admin/permissions
- Click on the Settings subtab in the main pane (not the one in the navbar)
- Type in "profile"
- Disable "Accounts > Allow User Profile Change" for all roles
- As a regular user, go to RocketChat (web version)
- Click on [Avatar menu] > My Account
Expected behavior:
Show a meaningful page about my account. This used to be the /account/profile page, which would at least show your profile even though you couldn't edit any of it. A more useful page however would be the /account/preferences page.
Actual behavior:
A page with the content "You are not authorized to view this page.", along with a left navbar of pages which do work, although the user is discouraged from clicking on them due to the formal, authoritarian error message.
Server Setup Information:
- Version of Rocket.Chat Server: 5.1.2
- Operating System: Linux
- Deployment Method: tar
- Number of Running Instances: 2
- DB Replicaset Oplog: enabled
- NodeJS Version: v14.19.3
- MongoDB Version: 4.2.15
Client Setup Information
- Desktop App or Browser Version: Chrome 105.0.5195.102
- Operating System: MacOS
Hi! Thanks for the suggestion!
Can I take up this issue @dudanogueira @nmagedman ?
@debdutdeb Can you add the hacktoberfest label on this issue?
We'll start with the labels next week.
IIUC, this request needs to be assessed by product first.