Skip to content

Disable links to update profile form for update_profile=False users #1997

@seav

Description

@seav

As mentioned in PR #1944, it would be nice if we can update the UI to disable links and menu items to update the user profile if update_profile=False.

Steps to reproduce the error

  1. With a user which has update_profile=False set, log in.
  2. Open the user menu on the page header.
  3. Go to the user dashboard.
  4. Go to the following URL path: /account/dashboard/

Actual behavior

  • After Step 2, "Edit profile" menu item is displayed.
  • After Step 3, gear icon on the side panel is displayed.
  • After Step 4, user is shown the "Update your profile" form.

Expected behavior

  • After Step 2, "Edit profile" menu item is missing.
  • After Step 3, gear icon on the side panel is missing.
  • After Step 4, user is shown an error alert message saying that they cannot update their profile.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions