Page MenuHomePhabricator

Add storage for custom policies
ClosedPublic

Authored by epriestley on Oct 10 2013, 8:40 PM.
Tags
None
Referenced Files
F14381014: D7282.id16395.diff
Sat, Dec 21, 4:32 AM
F14380085: D7282.id16400.diff
Sat, Dec 21, 3:31 AM
Unknown Object (File)
Thu, Dec 19, 3:44 AM
Unknown Object (File)
Thu, Dec 19, 1:48 AM
Unknown Object (File)
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
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

Branch
pstore1
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/policy/controller/PhabricatorPolicyEditController.php:70XHP16TODO Comment
Unit
Tests Passed