mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-24 22:25:15 +00:00
fix(projects): do not try to fetch project permissions when no projects exist
Resolves https://vikunja.sentry.io/issues/6572520737/events/2a747d0e53e7431fafca89429c552eae/
This commit is contained in:
@@ -237,6 +237,11 @@ type projectRight struct {
|
||||
|
||||
func checkRightsForProjects(s *xorm.Session, u *user.User, projectIDs []int64) (projectRightMap map[int64]*projectRight, err error) {
|
||||
projectRightMap = make(map[int64]*projectRight)
|
||||
|
||||
if len(projectIDs) < 1 {
|
||||
return
|
||||
}
|
||||
|
||||
args := []interface{}{
|
||||
u.ID,
|
||||
u.ID,
|
||||
|
||||
Reference in New Issue
Block a user