mirror of
https://github.com/eyebluecn/tank.git
synced 2024-04-21 12:32:16 +00:00
fix: fix bug.
This commit is contained in:
@@ -231,7 +231,7 @@ func (this *MatterController) Crawl(writer http.ResponseWriter, request *http.Re
|
||||
space := this.spaceService.CheckWritableByUuid(request, user, spaceUuid)
|
||||
|
||||
var dirMatter *Matter
|
||||
if puuid == "" {
|
||||
if puuid != "" {
|
||||
dirMatter = this.matterDao.CheckWithRootByUuid(puuid, space)
|
||||
if dirMatter.SpaceUuid != space.Uuid {
|
||||
panic(result.UNAUTHORIZED)
|
||||
|
||||
Reference in New Issue
Block a user