Page MenuHomePhabricator

Add storage for custom policies
ClosedPublic

Authored by epriestley on Oct 10 2013, 8:40 PM.
Tags
None
Referenced Files
F14347856: D7282.diff
Thu, Dec 19, 3:44 AM
F14345849: D7282.diff
Thu, Dec 19, 1:48 AM
F14344480: D7282.id16395.diff
Thu, Dec 19, 12:44 AM
Unknown Object (File)
Wed, Dec 11, 10:14 PM
Unknown Object (File)
Mon, Dec 9, 7:41 PM
Unknown Object (File)
Sun, Dec 8, 10:20 AM
Unknown Object (File)
Fri, Dec 6, 11:59 AM
Unknown Object (File)
Fri, Dec 6, 3:48 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