Update Response.php

This commit is contained in:
Chirag Aggarwal 2025-03-25 14:09:47 +05:30 committed by GitHub
parent e93010c5fe
commit 7fdde1a518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -675,7 +675,7 @@ class Response extends SwooleResponse
$isPrivilegedUser = Auth::isPrivilegedUser($roles);
$isAppUser = Auth::isAppUser($roles);
if ((!$isPrivilegedUser && !$isAppUser) || !$showSensitive) {
if ((!$isPrivilegedUser && !$isAppUser) && !$showSensitive) {
$data->setAttribute($key, '');
}
}