fix: fix bug.

This commit is contained in:
lishuang
2023-07-22 15:40:49 +08:00
parent 006554cd0a
commit 3fc032daa9
+1 -1
View File
@@ -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)