Team: Create permission type for team membership (#92352)

* Create permission type enum for team and remove usage of dashboard permission type
This commit is contained in:
Karl Persson
2024-08-23 12:34:34 +02:00
committed by GitHub
parent 927ce6c700
commit ddee95cb6d
10 changed files with 93 additions and 99 deletions

View File

@@ -31,7 +31,6 @@ import (
"github.com/grafana/grafana/pkg/services/contexthandler/ctxkey"
contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model"
"github.com/grafana/grafana/pkg/services/dashboards"
"github.com/grafana/grafana/pkg/services/dashboards/dashboardaccess"
"github.com/grafana/grafana/pkg/services/dashboards/database"
dashboardservice "github.com/grafana/grafana/pkg/services/dashboards/service"
"github.com/grafana/grafana/pkg/services/featuremgmt"
@@ -261,7 +260,7 @@ func setupDB(b testing.TB) benchScenario {
UserID: userID,
TeamID: teamID,
OrgID: orgID,
Permission: dashboardaccess.PERMISSION_VIEW,
Permission: team.PermissionTypeMember,
Created: now,
Updated: now,
})