1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 10:18:48 +02:00
phorge-phorge/src/applications/maniphest
epriestley 8c1c6fec5a Modernize policies in Paste and Macro
Summary:
Ref T603. Fixes T2823. This updates Paste and Macro.

  - **Paste**
    - Added default view policy.
    - I didn't add a "create" policy, since I can't come up with any realistic scenario where you'd give users access to pastes but not let them create them.
  - **Macro**
    - Added a "manage" policy, which covers creating and editing macros. This lets an install only allow "People With An Approved Sense of Humor" or whatever to create macros.
    - Removed the "edit" policy, since giving individual users access to specific macros doesn't make much sense to me.
    - Changed the view policy to the "most public" policy the install allows.
    - Added view policy information to the header.

Also fix a couple of minor things in Maniphest.

Test Plan:
  - Set Paste policy, created pastes via web and Conduit, saw they got the right default policies.
  - Set Macro policy, tried to create/edit macros with valid and unauthorized users.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2823, T603

Differential Revision: https://secure.phabricator.com/D7317
2013-10-16 10:35:52 -07:00
..
application Add defualt view and default edit policies for tasks 2013-10-09 13:53:17 -07:00
capability Allow "Default View" policies to be set to Public 2013-10-09 15:06:18 -07:00
conduit Add defualt view and default edit policies for tasks 2013-10-09 13:53:17 -07:00
config Convert maniphest to use standard fields 2013-09-19 11:56:15 -07:00
constants Padding on Maniphest status 2013-09-25 12:08:57 -07:00
controller Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00
editor lipsum - tighten up some test data generation 2013-10-04 15:29:32 -07:00
event Use ManiphestTaskQuery in nearly all interfaces 2013-09-25 13:44:14 -07:00
export Implemented support for different export formats. 2013-04-11 11:27:36 -07:00
field Render Maniphest fields in an application-transactions-compatible way 2013-09-21 16:23:17 -07:00
lipsum Add defualt view and default edit policies for tasks 2013-10-09 13:53:17 -07:00
mail Maniphest - make instructions !assign savvy 2013-10-14 12:33:38 -07:00
phid Policy - introduce parentQuery and pass around policy configuration from parent to child 2013-09-11 12:19:34 -07:00
query Add "Subscribers" to Maniphest application search 2013-09-27 16:02:08 -07:00
remarkup Remove obsolete/deprecated withTaskIDs() / withTaskPHIDs() 2013-09-10 15:34:04 -07:00
search Switch Maniphest search indexing to real ApplicationTransactions 2013-09-23 14:29:31 -07:00
storage Make PhabricatorPolicyInterface require a getPHID() method 2013-10-14 14:35:47 -07:00
view ObjectHeader Status icons 2013-09-24 08:42:04 -07:00