Skip to content

Add Edit Attachments permission documentation#9024

Open
Combs7th wants to merge 10 commits into
v11.8-documentationfrom
claude/issue-9022-20260612-0406
Open

Add Edit Attachments permission documentation#9024
Combs7th wants to merge 10 commits into
v11.8-documentationfrom
claude/issue-9022-20260612-0406

Conversation

@Combs7th

Copy link
Copy Markdown
Contributor

Documents the new Edit Attachments permission introduced in Mattermost v11.8.0.

Adds a Restrict who can edit post attachments subsection under Message management in source/administration-guide/onboard/advanced-permissions.rst, directly after Restrict who can edit messages.

Docs for Mattermost PR mattermost/mattermost#36227

Resolves #9022

Generated with Claude Code

agarciamontoro and others added 3 commits June 11, 2026 11:05
* Document Azure Blob Storage as a file storage backend

Adds Azure Blob Storage to the File storage system reference: a new
azureblob driver-name option and individual entries for the
FileSettings.AzureStorageAccount, AzureContainer, AzurePathPrefix,
AzureAccessKey, AzureEndpoint, AzureSSL, and
AzureRequestTimeoutMilliseconds settings. Extends the dedicated export
filestore list with the matching Export* variants.

Calls out the restart-required behaviour when changing file storage
settings so admins know Save in System Console isn't enough on its
own.

------
AI assisted commit

* Add walk-through page for configuring Azure Blob Storage

Folds the full prereqs, Azure portal/CLI provisioning, System Console
walk-through, Test Connection semantics, restart-required warning,
verification, optional export backend, and troubleshooting sections
into a dedicated configure/azure-blob-storage page.

Wires the new page into the configuration-settings toctree and bullet
list, and adds a seealso link from the File storage section of
environment-configuration-settings so admins can find it from the
reference page.

------
AI assisted commit

* Document migrating existing files from Amazon S3

Adds a Migrate existing files from Amazon S3 section to the Azure
Blob Storage walk-through. Covers the recommended trickle-then-cutover
pattern (long rclone sync, short AzCopy maintenance window), the
prerequisites for the migration host, phase-by-phase commands,
verification queries (object count parity, sha256 spot-check), the
rollback path, and caveats (S3 versioning, sync vs copy, prefix
rewrites, cross-region cost, Storage Mover preview status).

Updates the migration note under step 4 and the troubleshooting entry
for missing pre-cutover files to cross-reference the new section.

------
AI assisted commit

* Document AzureCloud and the updated AzureEndpoint semantics

Adds the AzureCloud setting documentation (commercial/government/custom)
to both the environment configuration reference and the Azure walkthrough,
rewrites the AzureEndpoint entry to reflect its new role as the full
Blob service URL valid only when AzureCloud is custom, and removes the
stale note that said sovereign clouds aren't configured through the
endpoint override. Adds ExportAzureCloud to the dedicated export
filestore key list.

------
AI assisted commit

* Document DefaultAzureCredential authentication mode

Restructures Step 3 of the Azure Blob Storage walk-through to cover
both shared-key and the new default_credential authentication mode.
The default_credential subsection walks an admin through picking the
identity source that matches the host (managed identity on Azure
VM/App Service/AKS, workload identity, service principal, az login)
and granting Storage Blob Data Contributor on the storage account.

Updates Step 4 to describe the new "Azure authentication" dropdown
in the System Console, including the conditional visibility of the
Azure Storage account key field. Adds AuthorizationPermissionMismatch
to the troubleshooting table and documents the propagation delay
that follows a fresh role assignment.

Adds FileSettings.AzureAuthMode to the environment-configuration
reference and to the ExportAzure* list under the dedicated export
filestore section.

------
AI assisted commit

* Simplify the docs

* Update source/administration-guide/configure/azure-blob-storage.rst

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Document Azure SAS support for presigned export downloads

Add ExportAzurePresignExpiresSeconds to the dedicated export filestore
key list, and generalize the presigned-download note so it reflects that
exports can now be downloaded via an Azure Blob Storage SAS URL, not just
an Amazon S3 presigned URL.

------
AI assisted commit

* Address review comments

* Add missing new line

* Fix malformed quotes

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Add notes to the AD/LDAP ID attribute, AD/LDAP Group ID attribute, and
SAML ID attribute settings explaining that values are matched verbatim
with no case normalization. Under PostgreSQL's default case-sensitive
collation, a change in casing is treated as a new user or unlinked
group, so the identity provider must return these attributes with
consistent casing.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Katie Wiersgalla <39744472+wiersgallak@users.noreply.github.com>
Document the new Edit Attachments permission introduced in Mattermost
v11.8.0, which controls whether users can add or remove file attachments
when editing posts.

Co-authored-by: Combs7th <Combs7th@users.noreply.github.com>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Combs7th Combs7th changed the base branch from master to v11.8-documentation June 12, 2026 04:13
@Combs7th Combs7th added 1: Dev Review Requires review by a core commiter 2: Editor Review Requires review by an editor labels Jun 12, 2026
@Combs7th Combs7th added this to the v11.8.0 milestone Jun 12, 2026
@Combs7th

Copy link
Copy Markdown
Contributor Author

@harshilsharma63 - Do the above doc updates look good to you?

@Combs7th Combs7th requested a review from harshilsharma63 June 12, 2026 04:15
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This pull request adds documentation for the Edit Attachments permission introduced in Mattermost v11.8. The new subsection under Message management explains how this permission controls attachment editing during post edits, its independence from text-edit permissions, default behaviour, administrative configuration steps, and the resulting user-facing error message.

Changes

Edit Attachments Permission Documentation

Layer / File(s) Summary
Edit Attachments permission subsection
source/administration-guide/onboard/advanced-permissions.rst
New subsection documents the Edit Attachments permission, explaining its scope for adding/removing attachments, separation from post text editing, default grant behaviour, step-by-step System Console instructions to disable attachment editing, and the user error message when permission is denied.

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding documentation for the Edit Attachments permission.
Description check ✅ Passed The description is directly related to the changeset, explaining the new Edit Attachments permission documentation and referencing the linked issue and Mattermost PR.
Linked Issues check ✅ Passed The PR fully satisfies the requirements in issue #9022: it adds the 'Restrict who can edit post attachments' section to the correct file with complete content covering all specifications.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the objective of documenting the Edit Attachments permission; no out-of-scope modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-9022-20260612-0406

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
source/administration-guide/onboard/advanced-permissions.rst (1)

219-219: ⚡ Quick win

Specify which role panel(s) should be modified for clarity and consistency.

Line 219 uses "In the applicable role panel" without naming the specific role panel(s), which is inconsistent with similar configuration examples throughout this document. Every other recipe in this section explicitly names the role panels—for example:

  • Line 119: "In the All Members panel"
  • Line 193: "In the All Members and Channel Administrators panels"
  • Line 203: "In the All Members, Channel Administrators, and Team Administrators panels"

For the scenario described (allowing users to edit post text without changing attachments), clarify which panel(s) should be modified. For example:

  • "In the All Members panel, go to Manage Posts." (if applying system-wide to all users)
  • Or: "In the appropriate role panel(s) (such as All Members), go to Manage Posts." (if the choice depends on deployment policy)

This would match the established pattern and help novice administrators understand exactly which panels to modify.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@source/administration-guide/onboard/advanced-permissions.rst` at line 219,
Replace the ambiguous phrase "In the applicable role panel, go to **Manage
Posts**." with a specific panel name or clear choice guidance to match the rest
of the document; for example, change it to "In the **All Members** panel, go to
**Manage Posts**." if this setting is system-wide, or to "In the appropriate
role panel(s) (such as **All Members**), go to **Manage Posts**." if it depends
on deployment policy, ensuring consistency with lines that reference **All
Members**, **Channel Administrators**, and **Team Administrators**.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@source/administration-guide/onboard/advanced-permissions.rst`:
- Line 219: Replace the ambiguous phrase "In the applicable role panel, go to
**Manage Posts**." with a specific panel name or clear choice guidance to match
the rest of the document; for example, change it to "In the **All Members**
panel, go to **Manage Posts**." if this setting is system-wide, or to "In the
appropriate role panel(s) (such as **All Members**), go to **Manage Posts**." if
it depends on deployment policy, ensuring consistency with lines that reference
**All Members**, **Channel Administrators**, and **Team Administrators**.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 58363387-88ec-485b-9c11-fd632a07a0b2

📥 Commits

Reviewing files that changed from the base of the PR and between eb35cda and 53bc6d1.

📒 Files selected for processing (1)
  • source/administration-guide/onboard/advanced-permissions.rst

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 53bc6d1

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA a0ffbb4

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA bf31b54

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA dfe7533

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 10ec3e9

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA c27728d

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA ef0d13a

@Combs7th

Copy link
Copy Markdown
Contributor Author

@harshilsharma63 - Please ignore the unintended commits pulled in for Azure Blob storage, and anything in the "Configure" folder. I'll get those removed.

Only relevant update here is to the advanced-permissions.rst page.

@harshilsharma63 harshilsharma63 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@amyblais amyblais removed the 1: Dev Review Requires review by a core commiter label Jun 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 7aceaf3

@Combs7th Combs7th requested a review from wiersgallak June 13, 2026 02:11
@Combs7th

Copy link
Copy Markdown
Contributor Author

@wiersgallak - Can you help with the editor review on this one so we can get it across the finish line by Tuesday?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2: Editor Review Requires review by an editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Edit Attachments permission

5 participants