Fix the bug of share auth.

This commit is contained in:
lishuang
2022-05-01 17:38:19 +08:00
parent cffa82226d
commit e64a73eb67
2 changed files with 9 additions and 0 deletions

View File

@ -92,6 +92,11 @@ func (this *ShareService) ValidateMatter(request *http.Request, shareUuid string
share := this.CheckShare(request, shareUuid, code, user)
shareOwner := this.userDao.FindByUuid(share.UserUuid)
if shareOwner.Status == USER_STATUS_DISABLED {
panic(result.BadRequestI18n(request, i18n.UserDisabled))
}
//if shareRootUuid is root. Bridge must has record.
if shareRootUuid == MATTER_ROOT {