feat: allow to find users with access to a project more freely
Related to https://kolaente.dev/vikunja/frontend/issues/2196
This commit is contained in:
@ -503,6 +503,17 @@ func TestProjectUsers(t *testing.T) {
|
||||
"username": "user7",
|
||||
}, false)
|
||||
})
|
||||
t.Run("discoverable by partial username, email and name when matching fuzzily", func(t *testing.T) {
|
||||
db.LoadAndAssertFixtures(t)
|
||||
s := db.NewSession()
|
||||
defer s.Close()
|
||||
|
||||
all, err := ListUsers(s, "user", &ProjectUserOpts{
|
||||
MatchFuzzily: true,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, all, 15)
|
||||
})
|
||||
}
|
||||
|
||||
func TestUserPasswordReset(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user