diff --git a/changelog/unreleased/space-type-from-request.md b/changelog/unreleased/space-type-from-request.md new file mode 100644 index 0000000000..a788991395 --- /dev/null +++ b/changelog/unreleased/space-type-from-request.md @@ -0,0 +1,5 @@ +Enhancement: Use space Type from request + +In the decomposedfs we now use the space type from the request when creating a new space. + +https://github.com/cs3org/reva/issues/2134 \ No newline at end of file diff --git a/pkg/storage/utils/decomposedfs/spaces.go b/pkg/storage/utils/decomposedfs/spaces.go index b312ea6854..7bc82296c6 100644 --- a/pkg/storage/utils/decomposedfs/spaces.go +++ b/pkg/storage/utils/decomposedfs/spaces.go @@ -79,7 +79,7 @@ func (fs *Decomposedfs) CreateStorageSpace(ctx context.Context, req *provider.Cr return nil, err } - err = fs.createStorageSpace(ctx, "project", n.ID) + err = fs.createStorageSpace(ctx, req.Type, n.ID) if err != nil { return nil, err }