mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-05 12:29:56 -06:00
use name instead id for map
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -592,7 +592,7 @@ func (g Graph) ListStorageSpacesWithFilters(ctx context.Context, filters []*stor
|
||||
permissions := make(map[string]struct{}, 1)
|
||||
// No error means the user has the permission
|
||||
if err == nil {
|
||||
permissions[settingsServiceExt.ListSpacesPermission(0).Id] = struct{}{}
|
||||
permissions[settingsServiceExt.ListSpacesPermission(0).Name] = struct{}{}
|
||||
}
|
||||
value, err := json.Marshal(permissions)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user