1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 17:28:51 +02:00
phorge-phorge/src/applications/project/storage
epriestley 329d03661f Use an extended policy to bind column and board policies together
Summary:
Ref T10349. Columns have the same policies as the projects they belong to.

However, the current implementation just returns the policy directly. This usually works, but if the project has a policy like "Members of (This) Project", the policy filter tries to check if the viewer is a member of //the column itself//. That doesn't work, since columns don't have members. This leads to a situation where columns on "Editable By: Project Members" projects can not be edited.

Instead, return a permissive base policy and then use an extended policy to bind the column policy to the project policy.

Test Plan:
  - Edited a column on an "Editable By: Members of Project" board.
  - Added and ran a unit test covering this case.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10349

Differential Revision: https://secure.phabricator.com/D15268
2016-02-13 11:34:54 -08:00
..
PhabricatorProject.php Allow workboard sorting and filtering to be saved as defaults 2016-02-12 07:47:23 -08:00
PhabricatorProjectColumn.php Use an extended policy to bind column and board policies together 2016-02-13 11:34:54 -08:00
PhabricatorProjectColumnPosition.php Continue lifting column layout logic out of ColumnPositionQuery 2016-02-03 15:05:43 -08:00
PhabricatorProjectColumnTransaction.php Use __CLASS__ instead of hard-coding class names 2015-05-14 07:21:13 +10:00
PhabricatorProjectCustomFieldNumericIndex.php Various linter fixes. 2014-02-26 12:44:58 -08:00
PhabricatorProjectCustomFieldStorage.php Various linter fixes. 2014-02-26 12:44:58 -08:00
PhabricatorProjectCustomFieldStringIndex.php Various linter fixes. 2014-02-26 12:44:58 -08:00
PhabricatorProjectDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorProjectSchemaSpec.php Automatically build all Lisk schemata 2014-10-02 09:51:20 -07:00
PhabricatorProjectSlug.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
PhabricatorProjectTransaction.php Allow workboard sorting and filtering to be saved as defaults 2016-02-12 07:47:23 -08:00