Fixes T8938. Sets by default for new badges, getMostOpenPolicy. Removes ability to edit viewPolicy.
Details
Details
- Reviewers
epriestley btrahan - Maniphest Tasks
- T8938: Badges need to return getMostOpenPolicy()
- Commits
- Restricted Diffusion Commit
rP2ada395ea9d5: Have Badges use getMostOpenPolicy for View
Create a new badge, see its public, assign it, log out, still able to view it.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
In theory, there may exist some badges that got set to some restrictive view policy in the wild. I think you'd want to write a migration script to migrate these things to more open, except that's kind of funky. Anyway, just an FYI you probably already knew I guess...
Comment Actions
Yeah, nothing reads it anymore. Policy infrastructure doesn't depend on it existing because some objects don't have an editable view policy.