Guest Options should not be displayed in Channel Moderation Settings page when Guest Access is disabled

Description

When Guest Access is disabled on an instance, as expected the permissions related to Guest Access is not displayed in the System Scheme. However this logic is not implemented in the new Channel Moderation Settings page. The Guest options is still displayed even when the Guest Access was disabled.

Steps to reproduce
1. Go to System Console > Guest Access Page and ensure that the Guest access is disabled.
2. Now go to System Console > Channels page and click on any of the channel.
3. Note that the Channel Moderation Settings page still displays all the settings related to Guest User even when Guest Access was disabled.

Expected: Options related to Guest User should not be displayed when Guest Access is disabled.

QA Test Steps

See description

Mana

None

Assignee

Hossein Ahmadian

QA Assignee

Rohitesh Gupta

Reporter

Rohitesh Gupta

Epic Link

Fix versions

Mattermost Team

Enterprise

Sprint

None

Labels

None

QA Testing Areas

Permissions

GitHub Issue

None

Components

None

Severity

None
Configure