mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Allow logged-out access to individual diffs (vs revisions)
Summary: Fixes T5303. Individual diffs can have public access policies. Test Plan: Viewed a public diff while logged out. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T5303 Differential Revision: https://secure.phabricator.com/D9452
This commit is contained in:
parent
c912944765
commit
c483877f57
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,10 @@ final class DifferentialDiffViewController extends DifferentialController {
|
||||||
|
|
||||||
private $id;
|
private $id;
|
||||||
|
|
||||||
|
public function shouldAllowPublic() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function willProcessRequest(array $data) {
|
public function willProcessRequest(array $data) {
|
||||||
$this->id = $data['id'];
|
$this->id = $data['id'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue