Skip to content

fix: remove deprecated admin-role detection and fix settings 403#1324

Open
Aryan-Verma-999 wants to merge 2 commits into
RocketChat:developfrom
Aryan-Verma-999:fix/remove-admin-role-detection
Open

fix: remove deprecated admin-role detection and fix settings 403#1324
Aryan-Verma-999 wants to merge 2 commits into
RocketChat:developfrom
Aryan-Verma-999:fix/remove-admin-role-detection

Conversation

@Aryan-Verma-999

@Aryan-Verma-999 Aryan-Verma-999 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

fix: remove deprecated admin-role detection and fix settings 403

Acceptance Criteria fulfillment

  • Remove getUserRoles() and getUsersInRole() API methods to prevent 403 Forbidden errors for non-admin/regular users on RC 8.x.
  • Remove admins store state and dependencies across React hooks (useFetchChatData) and UI components (MessageHeader).
  • Ensure channel-level role representation (owner, moderator, etc.) via getChannelRoles remains fully functional.
  • Update getMessageLimit() in EmbeddedChatApi to query /v1/settings.public?_id=Message_MaxAllowedSize to resolve the 403 error on settings fetch.

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-1324 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@Aryan-Verma-999 Aryan-Verma-999 force-pushed the fix/remove-admin-role-detection branch from 09ba04e to c886439 Compare June 9, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant