Page MenuHomePhabricator

Save authorPHID on Passphrase Credentials to support "Credential Author" object policy
ClosedPublic

Authored by epriestley on Jun 22 2015, 2:43 AM.
Tags
None
Referenced Files
F14041622: D13385.id.diff
Mon, Nov 11, 8:05 PM
F13997190: D13385.diff
Thu, Oct 24, 2:55 AM
F13990202: D13385.id32405.diff
Tue, Oct 22, 1:56 AM
F13988484: D13385.id32405.diff
Mon, Oct 21, 3:04 PM
F13986890: D13385.id32416.diff
Mon, Oct 21, 6:10 AM
F13981932: D13385.id32416.diff
Sat, Oct 19, 8:01 PM
F13981850: D13385.id.diff
Sat, Oct 19, 7:28 PM
F13981791: D13385.diff
Sat, Oct 19, 7:04 PM
Subscribers

Details

Summary

Fixes T5135. Currently, when you create a credential, we default the policies to your PHID. This means we can't have an application-level configurable default because there's no way to select "the actor's PHID" as a policy.

Start tracking the credential author's PHID and add an object policy for it, so there is such a setting.

Then, add policy defaults.

This mostly unblocks T6787. This obsoletes T6860.

Test Plan
  • Created a credential with "Credential Author" policy.
  • Verified I can see/edit it, but other users can not.
  • Changed default policies to something else.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Save authorPHID on Passphrase Credentials to support "Credential Author" object policy.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 22 2015, 5:27 PM
This revision was automatically updated to reflect the committed changes.