Skip to content

Role permissions are not updated on app launch #9382

@kondo97

Description

@kondo97

Summary
Latest role permissions are not synced correctly when the app is launched. Changes made to permissions while the app was killed are not reflected in the UI until the user re-authenticates (logs out and back in).

Steps to Reproduce

  1. Kill the app.
  2. In the System Console/Server settings, disable a permission for a specific role (e.g., "Create Channels").
  3. Launch the app.
  4. Observe the UI (e.g., the "+ CREATE NEW Channel" button).

Actual Behavior
The UI does not reflect the updated permissions on launch. For example, the "+ CREATE NEW Channel" button remains visible.
Note: If the app is already running and receives a WebSocket event when the permission is changed, the UI updates correctly. The issue only occurs during the initial cold start.

Expected Behavior
The app should fetch the latest role permissions during the initialization process and update the UI accordingly. The "+ CREATE NEW Channel" button should be hidden if the permission is disabled.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions