mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
always check recently updated users
also fix the query to get users for quota check for sql based providers Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -695,6 +695,9 @@ func TestRootDirVirtualFolder(t *testing.T) {
|
||||
})
|
||||
user, _, err := httpdtest.AddUser(u, http.StatusCreated)
|
||||
assert.NoError(t, err)
|
||||
f, err := user.GetVirtualFolderForPath("/")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "/", f.VirtualPath)
|
||||
conn, client, err := getSftpClient(user)
|
||||
if assert.NoError(t, err) {
|
||||
defer conn.Close()
|
||||
|
||||
Reference in New Issue
Block a user