Skip to content

Commit 4763153

Browse files
author
epriestley
committed
Remove admin requirement from MetaMTASendGridReceiveController
Summary: This got caught in the crossfire when we admin-only'd the whole MetaMTA tool. It should not be admin only. (Generally, we should probably separate this out better at some point.) Test Plan: Hit /mail/sendgrid/ as a logged-out, non-admin user (like SendGrid does). Reviewers: s, btrahan Reviewed By: s CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1588
1 parent 18ba5fa commit 4763153

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/applications/metamta/controller/sendgridreceive/PhabricatorMetaMTASendGridReceiveController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* Copyright 2011 Facebook, Inc.
4+
* Copyright 2012 Facebook, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -23,6 +23,10 @@ public function shouldRequireLogin() {
2323
return false;
2424
}
2525

26+
public function shouldRequireAdmin() {
27+
return false;
28+
}
29+
2630
public function processRequest() {
2731

2832
// No CSRF for SendGrid.

0 commit comments

Comments
 (0)