diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:53:22 +0100 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:53:22 +0100 |
commit | aadd7dcdc317c5e1665318b537162749514ac212 (patch) | |
tree | 5e4772ba6ca97dd7dca62325024ec4359b0636c0 /cmd | |
parent | b3828e38a5fbb92a92bae11e1e126b87fbad09c8 (diff) | |
download | gitea-aadd7dcdc317c5e1665318b537162749514ac212.tar.gz gitea-aadd7dcdc317c5e1665318b537162749514ac212.zip |
And others
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/serve.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serve.go b/cmd/serve.go index 4e99ebe5ff..dee7ca16d8 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -213,7 +213,7 @@ func runServ(c *cli.Context) error { keyID = key.ID // Check deploy key or user key. - if key.Type == models.KEY_TYPE_DEPLOY { + if key.Type == models.KeyTypeDeploy { if key.Mode < requestedMode { fail("Key permission denied", "Cannot push with deployment key: %d", key.ID) } |