Page MenuHomePhabricator

Add storage for custom policies
ClosedPublic

Authored by epriestley on Oct 10 2013, 8:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 7, 3:01 AM
Unknown Object (File)
Sat, May 31, 4:31 AM
Unknown Object (File)
Thu, May 29, 5:18 PM
Unknown Object (File)
Thu, May 29, 12:26 AM
Unknown Object (File)
Tue, May 27, 8:16 PM
Unknown Object (File)
May 9 2025, 4:43 PM
Unknown Object (File)
May 7 2025, 8:49 PM
Unknown Object (File)
May 5 2025, 10:54 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