Page MenuHomePhabricator

Add storage for custom policies
ClosedPublic

Authored by epriestley on Oct 10 2013, 8:40 PM.
Tags
None
Referenced Files
F18851381: D7282.id.diff
Fri, Oct 31, 12:36 AM
F18846703: D7282.diff
Wed, Oct 29, 8:40 PM
F18816389: D7282.id16395.diff
Tue, Oct 21, 6:29 AM
F18798934: D7282.id16400.diff
Fri, Oct 17, 10:06 AM
F18743185: D7282.id16400.diff
Thu, Oct 2, 10:41 PM
F18743182: D7282.id16395.diff
Thu, Oct 2, 10:40 PM
F18742620: D7282.diff
Thu, Oct 2, 8:43 PM
F18608011: D7282.diff
Sep 14 2025, 12:44 AM
Subscribers

Details

Summary

Ref T603. Allows custom policies to be saved. No integration with policy controls yet.

Test Plan
mysql> select * from policy where id = 3\G
*************************** 1. row ***************************
           id: 3
         phid: PHID-PLCY-e4v2fnbyuibi4supl5tn
        rules: [{"action":"allow","rule":"PhabricatorPolicyRuleAdministrators","value":null},{"action":"allow","rule":"PhabricatorPolicyRuleProjects","value":["PHID-PROJ-cwovm5gn2ilubjehcdgd"]},{"action":"allow","rule":"PhabricatorPolicyRuleLunarPhase","value":"new"}]
defaultAction: deny
  dateCreated: 1381437466
 dateModified: 1381437466
1 row in set (0.00 sec)

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped