Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hide save / update buttons in account console for READ_ONLY federated accounts #31304

@darius-m

Description

@darius-m

Description

Users retrieved from a READ_ONLY federation are not able to update their account information. As such, the "Save" and "Cancel" buttons in the "Personal info" tab should not be displayed, since they don't do anything (the fields that contain the user's information are already disabled). By the same token, the "Update" button for the password in the "Signing in" tab should also be hidden, since attempting to reset the password results in the error message "Federated storage is not writable".

Discussion

No response

Motivation

The user information and password cannot be updated when the user federation is set to READ_ONLY. The buttons are confusing for the users, since they lead them to believe that the data can be updated, when that is not the case.

Details

The buttons to update the information from the federated storage should be hidden when the user comes from a READ_ONLY federation. Ideally, the fields with the user data would be transformed into span or paragraph elements, but simply hiding the buttons and leaving the inputs as-is would achieve the desired results.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions