mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 06:05:30 +02:00
Backport #31732 by @yp05327 Fix: #31727 After:  Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
1 parent
ec467c344f
commit
8591c918f6
4 files changed
+19
-5
No files matched your search
@@ -109,6 +109,13 @@ type Project struct {
|
||||
ClosedDateUnix timeutil.TimeStamp
|
||||
}
|
||||
|
||||
// Ghost Project is a project which has been deleted
|
||||
const GhostProjectID = -1
|
||||
|
||||
func (p *Project) IsGhost() bool {
|
||||
return p.ID == GhostProjectID
|
||||
}
|
||||
|
||||
func (p *Project) LoadOwner(ctx context.Context) (err error) {
|
||||
if p.Owner != nil {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user