Page MenuHomePhabricator

Correct overbroad automatic capability grant of global settings objects
ClosedPublic

Authored by epriestley on May 9 2022, 10:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 14, 9:35 PM
Unknown Object (File)
Fri, Aug 28, 11:04 PM
Unknown Object (File)
Aug 18 2026, 9:52 AM
Unknown Object (File)
Aug 10 2026, 2:16 AM
Unknown Object (File)
Aug 9 2026, 11:18 PM
Unknown Object (File)
Aug 8 2026, 4:38 PM
Unknown Object (File)
Aug 5 2026, 11:11 AM
Unknown Object (File)
Aug 4 2026, 6:49 AM
Subscribers
None

Details

Summary

Ref T13679. In D16983, global settings objects were given an exception to let logged-out users see them, even on installs with no "public" user role.

This exception is too broad and grants everyone all capabilities, not just "CAN_VIEW". In particular, it incorrectly grants "CAN_EDIT", so any user can edit global settings defaults.

Restrict this grant to "CAN_VIEW".

Test Plan
  • As a non-administrator, tried to edit global settings.
  • Before: could.
  • After: could not.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable