Skip to content

Commit f2ad3e3

Browse files
authored
temp fix to make eosatlas and eosmedia work with their new space structure. To be removed! (#5347)
1 parent 90fc658 commit f2ad3e3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Bugfix: make eosmedia work with new space structure
2+
3+
We have added a special case to the `spacesLevel` function
4+
to make eosmedia's spaces work. This is temporary, since we
5+
plan to get rid of this function and just use the SpaceID that
6+
comes from the projects database.
7+
8+
https://github.com/cs3org/reva/pull/5347

pkg/spaces/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func PathToSpaceID(path string) string {
158158
func spacesLevel(path string) int {
159159
if strings.HasPrefix(path, "/eos/user") || strings.HasPrefix(path, "/eos/project") {
160160
return 5
161-
} else if strings.HasPrefix(path, "/winspaces") {
161+
} else if strings.HasPrefix(path, "/winspaces") || strings.HasPrefix(path, "/eos/media") || strings.HasPrefix(path, "/eos/atlas") {
162162
// e.g. /winspaces/c/copstest-doyle
163163
return 4
164164
} else {

0 commit comments

Comments
 (0)