fix(files): isSharing always return true
This commit is contained in:
parent
f91723eab7
commit
e462c349a5
4 changed files with 22 additions and 17 deletions
|
@ -839,8 +839,8 @@ func (h *FileHandlers) IsSharing(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
_, ok := h.deps.FileInfos().GetSharing(dirPath)
|
||||
if ok {
|
||||
exist, ok := h.deps.FileInfos().GetSharing(dirPath)
|
||||
if exist && ok {
|
||||
c.JSON(q.Resp(200))
|
||||
} else {
|
||||
c.JSON(q.Resp(404))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue