Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel Info: Only show Add Users button if user has permission to do so #650

Conversation

bpollman
Copy link
Contributor

@bpollman bpollman commented Nov 11, 2024

🔗 Issue Link

Jira or Github issue link, if applicable.

🎯 Goal

Hide the add user button if the action will fail

🛠 Implementation

Provide a description of the implementation.

🧪 Testing

Added users tests to ensure DM's and permissions check works

🎨 Changes

Add relevant screenshots or videos showcasing the changes.

☑️ Checklist

  • I have signed the Stream CLA (required)
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Affected documentation updated (docusaurus, tutorial, CMS (task created)

@bpollman bpollman requested a review from a team as a code owner November 11, 2024 03:27
@nuno-vieira
Copy link
Member

Hi @bpollman!

Thank you for the PR again, we'll handle it from here 👍

@nuno-vieira nuno-vieira changed the base branch from develop to fix/use-member-permissions-in-channel-info-view November 11, 2024 17:28
@nuno-vieira nuno-vieira merged commit d7f283a into GetStream:fix/use-member-permissions-in-channel-info-view Nov 11, 2024
5 of 9 checks passed
nuno-vieira added a commit that referenced this pull request Nov 12, 2024
…ns (#651)

* Channel Info: Add Check for `update-channel-members` permission before showing "Add Users" button (#650)

* Update CHANGELOG.md

* Fix swiftformat

* Fix test on channel info view

---------

Co-authored-by: Ben Pollman <[email protected]>
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.

2 participants