Skip to content

Commit

Permalink
Remove check for if calling user is banned
Browse files Browse the repository at this point in the history
  • Loading branch information
ioslife committed Sep 5, 2024
1 parent cac5104 commit 64c8773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/API/API_GetComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
if ($username) {
$user = User::firstWhere('User', $username);

if (!$user || !$user->UserWallActive || $user->banned_at || Auth::user()->banned_at) {
if (!$user || !$user->UserWallActive || $user->banned_at) {
return response()->json([], 404);
}
}
Expand Down

0 comments on commit 64c8773

Please sign in to comment.