Page MenuHomePhabricator

Add storage for custom policies
ClosedPublic

Authored by epriestley on Oct 10 2013, 8:40 PM.
Tags
None
Referenced Files
F13283487: D7282.id16400.diff
Sun, Jun 2, 3:05 PM
F13283486: D7282.id16395.diff
Sun, Jun 2, 3:05 PM
F13283305: D7282.diff
Sun, Jun 2, 1:47 PM
F13279508: D7282.id16400.diff
Sat, Jun 1, 6:02 PM
F13245502: D7282.diff
Thu, May 23, 6:04 AM
F13235156: D7282.id.diff
Tue, May 21, 4:18 AM
F13215219: D7282.id16395.diff
Fri, May 17, 3:56 PM
F13207607: D7282.id16400.diff
Thu, May 16, 1:16 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