mattermost / mattermost/mattermost-developer-documentation
Help Wanted: Apps - Document how to check if a user has permissions to manage a channel
Open
Nobody has claimed this yet.
Help Wanted
Needs Documentation
Up For Grabs
- Dominant language
- CSS
- Stars
- 90
- Forks
- 460
- Avg merge
- 9d 23h
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Mattermost Apps documentation and the permission logic in the issue body. Document how to expand acting_user, channel_member, and team_member and check the listed roles; done when developers can find and follow the guidance to determine whether a user can manage a channel.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100