aboutsummaryrefslogtreecommitdiff
path: root/models/access.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-28 00:32:19 +0800
committerslene <vslene@gmail.com>2014-03-28 00:32:19 +0800
commitbce8586bc66c6827bf2ea6e27440f01476c2d151 (patch)
treec76e8cba33b131e1c6a21a06a57cde51e375a581 /models/access.go
parent346db02d89ae0337956607eec43a0cd3f184fda8 (diff)
parent743593f7910d35f46cc18f06de12e59afa36fb65 (diff)
Merge branch 'master' of github.com:gogits/gogs
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 36d9405f..84cad17a 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,