1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/applications/macro
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 Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00
capability Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00
conduit Adding macro create method. 2013-07-08 19:49:05 -07:00
config MetaMTA: Owners, Pholio, Macro 2013-01-16 10:52:30 -08:00
constants Allow macros to have associated audio and audio behaviors 2013-09-27 16:01:37 -07:00
controller Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00
editor When editing objects which use files, attach the files to the objects 2013-10-06 17:07:55 -07:00
mail Remove the last hardcoding from PhabricatorMetaMTAReceivedMail 2013-05-17 10:00:49 -07:00
phid Policy - introduce parentQuery and pass around policy configuration from parent to child 2013-09-11 12:19:34 -07:00
query Fix some file policy issues and add a "Query Workspace" 2013-10-14 14:36:06 -07:00
remarkup Fix two issues with audio macros 2013-09-28 15:32:48 -07:00
storage Modernize policies in Paste and Macro 2013-10-16 10:35:52 -07:00