summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-14 02:43:40 +0800
committerUnknwon <u@gogs.io>2015-08-14 02:43:40 +0800
commit817b48ed1e083b5291afd339bda573cba14bba8d (patch)
tree52a38a2c63c49afb45d45ac3fc06b3c730aa9cca /models/repo.go
parent1fb53067f478414302096d5d976a3db85df9e2eb (diff)
downloadgitea-817b48ed1e083b5291afd339bda573cba14bba8d.tar.gz
gitea-817b48ed1e083b5291afd339bda573cba14bba8d.zip
Show owner/poster tags of comments and fix #1312
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 8ae3cfe6f2..73ae6b54ac 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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.