Refactor and fix incorrect comment (#1247)

This commit is contained in:
Ethan Koenig authored and Lunny Xiao committed 2017-03-15 08:51:46 +08:00
1 parent 7d8f9d1c46
commit ec0ae5d50c
20 files changed
+74 -84

No files matched your search

+1 -1
View File
@@ -232,7 +232,7 @@ func runServ(c *cli.Context) error {
fail("internal error", "Failed to get user by key ID(%d): %v", keyID, err)
}
mode, err := models.AccessLevel(user, repo)
mode, err := models.AccessLevel(user.ID, repo)
if err != nil {
fail("Internal error", "Failed to check access: %v", err)
} else if mode < requestedMode {