fix(projects): permission check now works
This commit is contained in:
parent
438f5c8e12
commit
f4fc431b6f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user