Page MenuHomePhabricator

Allow any Phame Blog member to see and edit drafts
AbandonedPublic

Authored by chad on Nov 7 2015, 11:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 1:24 AM
Unknown Object (File)
Mar 26 2024, 8:23 AM
Unknown Object (File)
Mar 14 2024, 7:32 PM
Unknown Object (File)
Mar 5 2024, 2:46 AM
Unknown Object (File)
Mar 5 2024, 2:46 AM
Unknown Object (File)
Mar 5 2024, 2:46 AM
Unknown Object (File)
Feb 11 2024, 9:13 AM
Unknown Object (File)
Feb 3 2024, 7:10 AM
Subscribers

Details

Summary

Fixes T5371. By default now any draft is visible and editable by any member of a Blog. However I'm finding "Joinable by" to be an odd Policy by name, maybe make a custom "Can Post" capability instead?

Test Plan

Set blog joinable to admins only, see that notchad can't post. Set it to all users, notchad can post and edit.

Diff Detail

Repository
rP Phabricator
Branch
phame-join-policy
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8692
Build 10083: Run Core Tests
Build 10082: arc lint + arc unit

Event Timeline

chad retitled this revision from to Allow any Phame Blog member to see and edit drafts.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.

I think we could also consider letting anyone who can see the blog see the draft -- that is, make "draft" mean "don't publish/notify/show in the main list", not "this is secret". This is similar to planned "draft" behavior in Differential. Drafts are (or will be) visible in the transaction history after things publish anyway, I think, so they're never really going to be secret?

Do we even need a separate JOIN policy? Could we just use EDIT? In what reasonable case is it OK for a user to write blog posts but not update the blog description or whatever?

This revision is now accepted and ready to land.Nov 8 2015, 2:13 PM

(We can specialize the capability name, but either of those product changes might simplify things and moot the issue.)

I'm for removing it for simplicity. I almost did last night, but this path also seemed pretty easy.

chad planned changes to this revision.Nov 8 2015, 4:12 PM