mattermost / mattermost/mattermost-developer-documentation

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

Open
#1,089 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.