Page MenuHomePhabricator

Add storage for custom policies
ClosedPublic

Authored by epriestley on Oct 10 2013, 8:40 PM.
Tags
None
Referenced Files
F14811209: D7282.id16400.diff
Mon, Jan 27, 3:02 AM
Unknown Object (File)
Sat, Jan 25, 5:10 AM
Unknown Object (File)
Wed, Jan 22, 9:03 PM
Unknown Object (File)
Tue, Dec 31, 4:36 PM
Unknown Object (File)
Dec 21 2024, 4:32 AM
Unknown Object (File)
Dec 21 2024, 3:31 AM
Unknown Object (File)
Dec 19 2024, 3:44 AM
Unknown Object (File)
Dec 19 2024, 1: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