Revert "RBAC: Optimize permissions caching" (#92548)

Revert "RBAC: Optimize permissions caching (#92412)"

This reverts commit 488e994d37.

Co-authored-by: gamab <gabriel.mabille@grafana.com>
This commit is contained in:
Aaron Godin
2024-08-28 10:44:38 +02:00
committed by GitHub
co-authored by gamab
parent 4addd9637e
commit 86e8e3b75d
3 changed files with 3 additions and 29 deletions
@@ -6,7 +6,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/grafana/authlib/claims"
"github.com/grafana/grafana/pkg/services/org"
"github.com/grafana/grafana/pkg/services/user"
)
@@ -69,7 +68,7 @@ func TestPermissionCacheKey(t *testing.T) {
for _, tc := range testcases {
t.Run(tc.name, func(t *testing.T) {
assert.Equal(t, tc.expected, GetUserPermissionCacheKey(tc.signedInUser))
assert.Equal(t, tc.expected, GetPermissionCacheKey(tc.signedInUser))
})
}
}