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)
Thu, Feb 27, 1:05 PM
Unknown Object (File)
Tue, Feb 25, 11:35 PM
Unknown Object (File)
Mon, Feb 24, 2:54 AM
Unknown Object (File)
Feb 9 2025, 10:14 AM
Unknown Object (File)
Feb 9 2025, 10:14 AM
Unknown Object (File)
Feb 9 2025, 10:14 AM
Unknown Object (File)
Feb 9 2025, 10:14 AM
Unknown Object (File)
Jan 28 2025, 9:37 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