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

Help Wanted: Apps - Document how to check if a user has permissions to manage a channel #1089

Open
mm-cloud-bot opened this issue Jul 13, 2022 · 0 comments

Comments

@mm-cloud-bot
Copy link

Mattermost user michael.kochell from https://community.mattermost.com has requested the following be documented:

In order to check if a user has permission to manage a channel, you can use this logic:

- Expand `acting_user`, `channel_member`, and `team_member`
- Use `acting_user.roles.includes('system_admin') || team_member.roles.includes('team_admin') || channel_member.roles.includes('channel_admin')`

See the original post here.

This issue was generated from Mattermost using the Doc Up plugin.

@cwarnermm cwarnermm changed the title Request for Documentation: Apps - Document how to check if a user has permissions to manage a channel Help Wanted: Apps - Document how to check if a user has permissions to manage a channel Oct 25, 2023
@cwarnermm cwarnermm added Help Wanted Community help wanted Up For Grabs labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants