mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
backup: include folders set on groups
Fixes #885 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -656,10 +656,13 @@ func sqlCommonDumpGroups(dbHandle sqlQuerier) ([]Group, error) {
|
||||
if err != nil {
|
||||
return groups, err
|
||||
}
|
||||
group.PrepareForRendering()
|
||||
groups = append(groups, group)
|
||||
}
|
||||
return groups, rows.Err()
|
||||
err = rows.Err()
|
||||
if err != nil {
|
||||
return groups, err
|
||||
}
|
||||
return getGroupsWithVirtualFolders(ctx, groups, dbHandle)
|
||||
}
|
||||
|
||||
func sqlCommonGetUsersInGroups(names []string, dbHandle sqlQuerier) ([]string, error) {
|
||||
|
||||
Reference in New Issue
Block a user