index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
/
repo.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2015-08-14 02:43:40 +0800
committer
Unknwon <u@gogs.io>
2015-08-14 02:43:40 +0800
commit
817b48ed1e083b5291afd339bda573cba14bba8d
(
patch
)
tree
52a38a2c63c49afb45d45ac3fc06b3c730aa9cca
/
models/repo.go
parent
1fb53067f478414302096d5d976a3db85df9e2eb
(
diff
)
Show owner/poster tags of comments and fix #1312
Diffstat
(limited to 'models/repo.go')
-rw-r--r--
models/repo.go
4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 8ae3cfe6..73ae6b54 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.