LBAC for data sources: Refactor for readablitity (#112371)

* refactor to make it more readable

* removes the field of restrictAccess
This commit is contained in:
Eric Leijonmarck
2025-10-14 15:39:55 -05:00
committed by GitHub
parent 01c4cb1fac
commit b90cb220ed
4 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -242,10 +242,10 @@ func TestAddDataSourceTeamHTTPHeaders(t *testing.T) {
jsonData := simplejson.New()
jsonData.Set("teamHttpHeaders", datasources.TeamHTTPHeaders{
Headers: datasources.TeamHeaders{
tenantID: []datasources.TeamHTTPHeader{
tenantID: []datasources.AccessRule{
{
Header: "Authorization",
Value: "foo!=bar",
Header: "Authorization",
LBACRule: "foo!=bar",
},
},
},