summaryrefslogtreecommitdiffstats
path: root/models/access.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-27 11:37:33 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-27 11:37:33 -0400
commitf470c241d6b1de30e4f500a6cf69f6ecd0cf8b41 (patch)
treeaba8fc0973c410c938af5988e2e5d09374252738 /models/access.go
parentc796ed3849e3cd5b28cc8234edc71bbedafbc7da (diff)
downloadgitea-f470c241d6b1de30e4f500a6cf69f6ecd0cf8b41.tar.gz
gitea-f470c241d6b1de30e4f500a6cf69f6ecd0cf8b41.zip
IP: RC Code Review
Diffstat (limited to 'models/access.go')
-rw-r--r--models/access.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/access.go b/models/access.go
index 36d9405f52..84cad17a3f 100644
--- a/models/access.go
+++ b/models/access.go
@@ -15,7 +15,7 @@ const (
AU_WRITABLE
)
-// Access represents the accessibility of user and repository.
+// Access represents the accessibility of user to repository.
type Access struct {
Id int64
UserName string `xorm:"unique(s)"`
@@ -30,7 +30,7 @@ func AddAccess(access *Access) error {
return err
}
-// HasAccess returns true if someone can read or write given repository.
+// HasAccess returns true if someone can read or write to given repository.
func HasAccess(userName, repoName string, mode int) (bool, error) {
return orm.Get(&Access{
Id: 0,