Skip to content

Commit a1e1c11

Browse files
committed
fix: prevent users from seeing their own flags
1 parent 670aa2e commit a1e1c11

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

extensions/flags/src/Access/ScopeFlagVisibility.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public function __invoke(User $actor, Builder $query): void
3838
$query->orWhereDoesntHave('post.discussion.tags');
3939
}
4040
}
41-
42-
if (! $actor->hasPermission('discussion.viewFlags')) {
43-
$query->orWhere('flags.user_id', $actor->id);
44-
}
4541
});
4642
}
4743
}

0 commit comments

Comments
 (0)