Page MenuHomePhabricator

Allow custom policies to be loaded and exeucuted by the policy filter
ClosedPublic

Authored by epriestley on Oct 13 2013, 1:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 11:13 AM
Unknown Object (File)
Wed, Dec 18, 6:45 AM
Unknown Object (File)
Tue, Dec 17, 10:02 PM
Unknown Object (File)
Sat, Dec 14, 7:44 PM
Unknown Object (File)
Sun, Dec 8, 9:05 PM
Unknown Object (File)
Sun, Dec 8, 7:33 PM
Unknown Object (File)
Tue, Nov 26, 1:59 PM
Unknown Object (File)
Nov 10 2024, 12:08 PM
Subscribers

Details

Summary

Ref T603. Adds code to actually execute custom policies. (There's still no way to select them in the UI.)

Test Plan
  • Added and executed unit tests.
  • Edited policies in existing applications.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Although I'm sure your review was very thorough, it might be best for @btrahan to take a look too.

btrahan added inline comments.
src/applications/policy/query/PhabricatorPolicyQuery.php
73–75

you could lose this else or lose the initialization on line 66

204

s/thought/though/

epriestley updated this revision to Unknown Object (????).Oct 14 2013, 6:46 PM
  • Remove extra initialization.
  • Fix comment typo.