From 3c3bf638d6c3c0e590d157f7ded5544251b83511 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 29 Dec 2022 22:11:51 +0100 Subject: [PATCH] fix(projects): permission check now works --- pkg/models/project_rights.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/project_rights.go b/pkg/models/project_rights.go index 9101e9ac2..60592a156 100644 --- a/pkg/models/project_rights.go +++ b/pkg/models/project_rights.go @@ -226,7 +226,7 @@ func (p *Project) checkRight(s *xorm.Session, a web.Auth, rights ...Right) (bool r := &allProjectRights{} var maxRight = 0 exists, err := s. - Select("p.*, ul.right tl.right"). + Select("p.*, ul.right, tl.right"). Table("projects"). Alias("p"). // User stuff