mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Force admin only permissions on system logs
This commit is contained in:
parent
3083ab6237
commit
857fa8a57f
@ -63,7 +63,7 @@ class SystemLogController extends BaseController
|
|||||||
if(auth()->user()->isAdmin())
|
if(auth()->user()->isAdmin())
|
||||||
return $this->listResponse($system_logs);
|
return $this->listResponse($system_logs);
|
||||||
|
|
||||||
return $this->listResponse(SystemLog::query());
|
return $this->errorResponse('Insufficient permissions', 403);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user