Show owner/poster tags of comments and fix #1312

This commit is contained in:
Unknwon 2015-08-14 02:43:40 +08:00
parent 1fb53067f4
commit 817b48ed1e
16 changed files with 164 additions and 57 deletions

View file

@ -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.