fix(projects): permission check now works

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

View File

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