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())
|
||||
return $this->listResponse($system_logs);
|
||||
|
||||
return $this->listResponse(SystemLog::query());
|
||||
return $this->errorResponse('Insufficient permissions', 403);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue