Drops Join Policy, uses Edit Policy where needed. Allows anyone with Blog Edit permissions to post and edit any post on that blog. Fixes T5371
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- T5371: Allow other people to view and edit unpublished Phame blogs
- Commits
- Restricted Diffusion Commit
rPdf23d893f7ca: Remove Join Policy from Phame
Draft Post as chad, see post, log in with notchad, edit that post and publish it.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Cool, I think this is a good simplification. It's also easy for us to add a separate policy back later if we need it, but harder to remove this policy once we unprototype.
src/applications/phame/conduit/PhameCreatePostConduitAPIMethod.php | ||
---|---|---|
75–78 | You should also require CAN_VIEW here. | |
src/applications/phame/storage/PhamePost.php | ||
197–212 | At some point in the future we should make sure getBlog() always exists (I think this is an artifact of an earlier time when a post could belong to multiple blogs) and clean this up, but it's fine for now. |