Skip to content

achievements: error on editΒ #9677

@paulbert

Description

@paulbert

I'm getting an only admin may edit roles error on achievements when editing achievements for a user before updating their profile for the first time.

Steps to reproduce:

  1. Create a new user
  2. Add achievements for user (dashboard -> myAchievements at the bottom)
  3. When trying to save, you'll see the below error
  4. Hit back or refresh, achievements are saved (good), but user's name is not. When viewing achievements these show up as undefined.

Interestingly, after adding in the user profile information on the UsersUpdate page, you can edit the user information on the achievements page with no issue.

Expected behavior:
If editing the achievements before adding in the user profile information, the user information should be saved without error.

In addition, the "Please complete your profile to enjoy full features!" message should still appear on the dashboard since the user profile is still incomplete at that point.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions