Skip to content

Commit

Permalink
Merge pull request #265 from eyebluecn/fix-space-matter-preview
Browse files Browse the repository at this point in the history
fix: space matter preview token logic
  • Loading branch information
zicla authored Oct 6, 2024
2 parents 6f59fe2 + b4c0455 commit 09c903e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ tmp
tank
tank.exe

# mac
.DS_Store
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ c. 在github上发布新版本。
go get xxx/xxx
go mod tidy

tank-4.1.1 2024-10-6
1. 修复已知问题

tank-4.1.0 2024-7-27
1. 删除用户后,空间一并删除。 #222
2. 增加批量绑定空间成员功能。 #227
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[English Version](https://tank-doc.eyeblue.cn/en)

# 蓝眼云盘(4.1.0
# 蓝眼云盘(4.1.1
[在线Demo](https://tanker.eyeblue.cn) (体验账号: demo 密码:123456)

蓝眼云盘是蓝眼开源系列代表作品之一,致力于打造精致,优雅,简约的云盘。核心功能如下:
Expand Down
2 changes: 1 addition & 1 deletion build/pack/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@REM prepare the variables.

@REM version name
SET VERSION_NAME=tank-4.1.0
SET VERSION_NAME=tank-4.1.1
ECHO VERSION_NAME: %VERSION_NAME%
@REM golang proxy
SET GOPROXY=https://goproxy.cn
Expand Down
2 changes: 1 addition & 1 deletion build/pack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -e
#prepare the variables.

# version name
VERSION_NAME=tank-4.1.0
VERSION_NAME=tank-4.1.1
echo "VERSION_NAME: ${VERSION_NAME}"
# golang proxy
GOPROXY=https://goproxy.cn
Expand Down
2 changes: 1 addition & 1 deletion code/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
//db table's prefix. tank41_ means current version is tank:4.1.x
TABLE_PREFIX = "tank41_"

VERSION = "4.1.0"
VERSION = "4.1.1"
)

type Config interface {
Expand Down
6 changes: 4 additions & 2 deletions code/rest/alien_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ func (this *AlienService) ValidMatter(
}

tokenUser := this.userDao.CheckByUuid(downloadToken.UserUuid)
if matter.UserUuid != tokenUser.Uuid {
panic(result.UNAUTHORIZED)

if matter.SpaceUuid != tokenUser.SpaceUuid {
//whether user has the space's read auth.
this.spaceService.CheckReadableByUuid(request, tokenUser, matter.SpaceUuid)
}

//TODO: expire the download token. If download by chunk, do this later.
Expand Down

0 comments on commit 09c903e

Please sign in to comment.