Channel moderation sometimes updating team / system roles in high availability setup

Description

Reproduction steps in HA server:

  • Create a team scheme and set all permissions to true

  • Open channel moderation for a channel in that team and enable / disable create posts multiple times

  • Eventually it will say "Create posts is disabled in the team scheme" and you will be unable to add create posts back to the channel (as it gets disabled on the team level)

QA Test Steps

See description
Change the "create posts" setting ~20 times successfully
Changing the channel moderation setting doesn't modify the team permission scheme

Mana

None

Assignee

Farhan Munshi

QA Assignee

Ogi Marusic

Reporter

Farhan Munshi

Epic Link

None

Fix versions

Mattermost Team

Enterprise

Sprint

None

Labels

None

QA Testing Areas

Permissions

GitHub Issue

None

Components

None

Severity

S2_functionality_loss_or_cosmetic_regressions
Configure