Page MenuHomePhabricator

Add a "template" parameter to application default policies
ClosedPublic

Authored by epriestley on Jun 11 2015, 7:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 9:14 AM
Unknown Object (File)
Sat, Apr 6, 9:23 PM
Unknown Object (File)
Fri, Apr 5, 12:57 PM
Unknown Object (File)
Mon, Apr 1, 2:10 PM
Unknown Object (File)
Sun, Mar 24, 3:54 PM
Unknown Object (File)
Sat, Mar 23, 6:59 PM
Unknown Object (File)
Mar 20 2024, 12:41 AM
Unknown Object (File)
Mar 14 2024, 7:32 PM
Subscribers

Details

Summary

Ref T5681. Ref T6860. This doesn't do anything interesting on its own, just makes the next diff smaller.

In the next diff, policies become aware of the types of objects they're acting on. We need to specify which object type all the "Default View/Edit" settings are for so they get the right rules.

For example, a rule like "Allow task author" is OK for "View Policy" on a task, and also OK for "Default View Policy" on ManiphestApplication. But it's not OK for "Can Create Tasks" on ManiphestApplication.

So annotate all the "template"/"default" policies with their types. The next diff will use these to let you select appropriate rules for the given object type.

Test Plan
  • Used grep to find these.
  • This change has no effect.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable