Skip to content

[Bug] Community Frontend: role field not sent in user update PATCH request #48

@DissonADSon

Description

@DissonADSon

Bug Description

When editing a user in the admin panel and changing their role (e.g., from agent to administrator), the frontend does NOT include the role field in the PATCH request body.

Steps to Reproduce

  1. Log in as account_owner
  2. Go to Users settings
  3. Click to edit any user
  4. Change the role dropdown (e.g., from Agent to Administrator)
  5. Click Save

Expected Behavior

The PATCH request to /api/v1/users/:id should include "role": "administrator" in the request body.

Actual Behavior

The PATCH request only sends name and availability:

PATCH /api/v1/users/:id Parameters: {"name" => "...", "availability" => "online"}

The role field is completely absent from the payload.

Backend Verification

The backend controller (Api::V1::UsersController#update) correctly handles role updates when the role parameter is present — the issue is exclusively on the frontend not including it in the request.

Environment

  • Image: evoapicloud/evo-ai-frontend-community:latest
  • Deployment: Docker Swarm
  • Auth service: evoapicloud/evo-auth-service-community:latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions