fix(projects): don't check if new projects are archived
This commit is contained in:
parent
3e8d1b3667
commit
438f5c8e12
@ -596,6 +596,10 @@ func (p *Project) CheckIsArchived(s *xorm.Session) (err error) {
|
||||
return p.CheckIsArchived(s)
|
||||
}
|
||||
|
||||
if p.ID == 0 { // don't check new projects
|
||||
return nil
|
||||
}
|
||||
|
||||
project, err := GetProjectSimpleByID(s, p.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user