Add authentication check for operator permissions in DownloadAttachment
This commit is contained in:
parent
1109a6547b
commit
0b463fa70c
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
{
|
||||
// Require authentication if confidential
|
||||
$operator = FederationServer::getAuthenticatedOperator();
|
||||
|
||||
if(!$operator->canManageBlacklist())
|
||||
{
|
||||
throw new RequestException('Insufficient Permissions to view confidential evidence', 401);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue