fix(sharing): make editing link share comments work

Resolves https://github.com/go-vikunja/vikunja/issues/1510
This commit is contained in:
kolaente
2025-10-09 10:53:10 +02:00
parent 7da2942ca6
commit 2dd36ad0a9

View File

@@ -46,6 +46,11 @@ func (tc *TaskComment) canUserModifyTaskComment(s *xorm.Session, a web.Auth) (bo
return false, err
}
shareAuth, is := a.(*LinkSharing)
if is {
return shareAuth.getUserID() == savedComment.AuthorID, nil
}
return a.GetID() == savedComment.AuthorID, nil
}