fix(projects): permission check now works
This commit is contained in:
parent
92b7fb71d8
commit
3c3bf638d6
|
@ -226,7 +226,7 @@ func (p *Project) checkRight(s *xorm.Session, a web.Auth, rights ...Right) (bool
|
||||||
r := &allProjectRights{}
|
r := &allProjectRights{}
|
||||||
var maxRight = 0
|
var maxRight = 0
|
||||||
exists, err := s.
|
exists, err := s.
|
||||||
Select("p.*, ul.right tl.right").
|
Select("p.*, ul.right, tl.right").
|
||||||
Table("projects").
|
Table("projects").
|
||||||
Alias("p").
|
Alias("p").
|
||||||
// User stuff
|
// User stuff
|
||||||
|
|
Loading…
Reference in New Issue