Browse Source

fix not getting any permissions by user.

master
Gisle Aune 5 years ago
parent
commit
685fa9550f
  1. 2
      database/drivers/mysqldriver/projects.go

2
database/drivers/mysqldriver/projects.go

@ -127,7 +127,7 @@ func (r *projectRepository) GetUserPermissions(ctx context.Context, user models.
} }
permissions := make([]*models.ProjectPermission, 0, 8) permissions := make([]*models.ProjectPermission, 0, 8)
err = r.db.GetContext(ctx, &permissions, query, args...)
err = r.db.SelectContext(ctx, &permissions, query, args...)
if err != nil && err != sql.ErrNoRows { if err != nil && err != sql.ErrNoRows {
return nil, err return nil, err
} }

Loading…
Cancel
Save