Homec4science

Improve PolicyFilter and PolicyQuery

Authored by epriestley <git@epriestley.com> on Aug 11 2012, 16:02.

Description

Improve PolicyFilter and PolicyQuery

Summary:

  • Allow PolicyQuery to require specific sets of capabilities other than "CAN_VIEW", like edit, etc. The default set is "view".
  • Add some convenience methods to PolicyFilter to test for capabilities.

Test Plan: Viewed pastes, projects, etc. Used other stuff in future diff.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

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

Details

Committed
epriestley <git@epriestley.com>Aug 11 2012, 16:02
Pushed
aubortJan 31 2017, 17:16
Parents
rPH62b3e4aea355: Remove a check for closing revisions
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH6cbc67ea7501: Improve PolicyFilter and PolicyQuery (authored by epriestley <git@epriestley.com>).Aug 11 2012, 16:02