1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/paste/controller
epriestley 6b1c27eb0e Make "public" pastes meaningfully visible to logged-out users
Summary:
  - Introduce `shouldAllowPublic()`, indicating that logged-out users are OK in a controller if the install is configured to permit public policies.
  - Make Paste views and lists allow public users.
  - Make UI do sensible things with respect to disabling links, etc.
  - Improve behavior of "you need to login" with respect to policy exceptions and Ajax requests.

Test Plan: Looked at "public" paste, saw all unavailable UI disabled, clicked it, got appropraite prompts.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D3502
2012-09-30 19:44:09 -07:00
..
PhabricatorPasteController.php Make "public" pastes meaningfully visible to logged-out users 2012-09-30 19:44:09 -07:00
PhabricatorPasteEditController.php Allow projects to be set as policies 2012-09-13 10:15:08 -07:00
PhabricatorPasteListController.php Make "public" pastes meaningfully visible to logged-out users 2012-09-30 19:44:09 -07:00
PhabricatorPasteViewController.php Make "public" pastes meaningfully visible to logged-out users 2012-09-30 19:44:09 -07:00