fix(sharing): make editing link share comments work
Resolves https://github.com/go-vikunja/vikunja/issues/1510
This commit is contained in:
parent
7da2942ca6
commit
2dd36ad0a9
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue