diff --git a/code/rest/matter_controller.go b/code/rest/matter_controller.go index b1bdb2f..beeb174 100644 --- a/code/rest/matter_controller.go +++ b/code/rest/matter_controller.go @@ -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)