We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c6eb0 commit e35d7aeCopy full SHA for e35d7ae
cmd/serv.go
@@ -230,6 +230,12 @@ func runServ(c *cli.Context) error {
230
fail("internal error", "Failed to get user by key ID(%d): %v", keyID, err)
231
}
232
233
+ if !user.IsActive || user.ProhibitLogin {
234
+ fail("Your account is not active or has been disabled by Administrator",
235
+ "User %s is disabled and have no access to repository %s",
236
+ user.Name, repoPath)
237
+ }
238
+
239
mode, err := models.AccessLevel(user.ID, repo)
240
if err != nil {
241
fail("Internal error", "Failed to check access: %v", err)
0 commit comments