Homec4science

Add storage for custom policies

Authored by epriestley <git@epriestley.com> on Oct 11 2013, 01:09.

Description

Add storage for custom policies

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)

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D7282

Details

Committed
epriestley <git@epriestley.com>Oct 11 2013, 01:09
Pushed
aubortJan 31 2017, 17:16
Parents
rPHdb71bf6128c8: Fix issue reported from github
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5899ae08b32b: Add storage for custom policies (authored by epriestley <git@epriestley.com>).Oct 11 2013, 01:09