Skip to content

fix(app-file-manager): gate accessControl behind canUsePrivateFiles WCP check - #5568

Merged
Pavel910 merged 1 commit into
release/6.4.8from
fix/file-manager-access-control-wcp-gate
Aug 11, 2026
Merged

fix(app-file-manager): gate accessControl behind canUsePrivateFiles WCP check#5568
Pavel910 merged 1 commit into
release/6.4.8from
fix/file-manager-access-control-wcp-gate

Conversation

@Pavel910

@Pavel910 Pavel910 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • FileDetailsPresenter.saveFile() unconditionally sent accessControl in the UpdateFile mutation payload. When Private Files is not licensed, the API removes accessControl from FmFileUpdateInput, causing every file edit (name, description, tags) to fail with: Field "accessControl" is not defined by type "FmFileUpdateInput".
  • Inject WcpService into FileDetailsPresenter and gate all accessControl usage in buildForm(), loadFile(), and saveFile() behind canUsePrivateFiles() — matching the existing pattern in FileFieldsProviderWithWcp.
  • Add tests covering the unlicensed path (save payload, form data, field disable).

Test plan

  • Existing FileDetailsPresenter tests pass (licensed path unchanged)
  • New unlicensed-path tests verify accessControl is omitted from save payload, form data, and field disable calls
  • Manual: edit a file's tags/name in an unlicensed project — save should succeed without GraphQL error

🤖 Generated with Claude Code

…CP check

FileDetailsPresenter unconditionally sent accessControl in the
UpdateFile mutation payload. When Private Files is not licensed,
the API removes accessControl from FmFileUpdateInput, causing
every file save to fail with a GraphQL validation error.

Inject WcpService and gate accessControl in buildForm(), loadFile(),
and saveFile() behind canUsePrivateFiles(). Add tests for the
unlicensed path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Pavel910 Pavel910 self-assigned this Aug 11, 2026
@Pavel910 Pavel910 added this to the 6.4.8 milestone Aug 11, 2026
@Pavel910
Pavel910 merged commit afab35a into release/6.4.8 Aug 11, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant