mirror of
https://gitee.com/gitea/gitea
synced 2025-11-04 00:20:25 +08:00
Allow adding new files to an empty repo (#24164)

This commit is contained in:
@@ -32,7 +32,7 @@ func Authenticate(user *user_model.User, login, password string) (*user_model.Us
|
||||
}
|
||||
|
||||
// WARN: DON'T check user.IsActive, that will be checked on reqSign so that
|
||||
// user could be hint to resend confirm email.
|
||||
// user could be hinted to resend confirm email.
|
||||
if user.ProhibitLogin {
|
||||
return nil, user_model.ErrUserProhibitLogin{
|
||||
UID: user.ID,
|
||||
|
||||
Reference in New Issue
Block a user