middleware should allow, not deny

This commit is contained in:
Kael committed 2024-10-30 19:06:50 +11:00
1 parent d4d63ff273
commit 6520235667
15 files changed
+149 -211

No files matched your search

@@ -12,7 +12,7 @@ class SecurityController extends Controller
private function removeSensitiveData($team)
{
$token = auth()->user()->currentAccessToken();
if ($token->can('view:sensitive')) {
if ($token->can('read:sensitive')) {
return serializeApiResponse($team);
}
$team->makeHidden([