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
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

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
}