1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 03:44:32 +02:00

fix: prevent users from seeing their own flags (#4167)

This commit is contained in:
Sami Mazouz
2025-01-31 09:12:12 +01:00
committed by GitHub
parent 670aa2e236
commit cf7ef48906
4 changed files with 7 additions and 9 deletions

View File

@@ -144,7 +144,7 @@ class IncludeFlagsVisibilityTest extends TestCase
'user_with_general_permission_sees_where_unrestricted_tag' => [2, [6, 7, 8]],
'user_with_tag1_permission_sees_tag1_flags' => [3, [1, 2, 3, 4, 5]],
'normal_user_sees_none' => [4, []],
'normal_user_sees_own' => [5, [2, 7, 4, 8]],
'normal_user_does_not_see_own' => [5, []],
];
}
}