mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 00:38:36 +00:00
Show owner/poster tags of comments and fix #1312
This commit is contained in:
@@ -247,8 +247,8 @@ func (repo *Repository) HasAccess(u *User) bool {
|
||||
return has
|
||||
}
|
||||
|
||||
func (repo *Repository) IsOwnedBy(u *User) bool {
|
||||
return repo.OwnerID == u.Id
|
||||
func (repo *Repository) IsOwnedBy(userID int64) bool {
|
||||
return repo.OwnerID == userID
|
||||
}
|
||||
|
||||
// DescriptionHtml does special handles to description and return HTML string.
|
||||
|
Reference in New Issue
Block a user