fix(projects): don't check if new projects are archived

This commit is contained in:
kolaente 2022-12-29 22:11:37 +01:00
parent 4c884246df
commit 92b7fb71d8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -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