[release-11.6.3] RBAC: Dont additionally cache all users permissions (#106146)
RBAC: Don't additionally cache all users permissions (#105607)
* RBAC: Don't additionally cache all users permissions
* remove unused tests
(cherry picked from commit cfba630f5c)
This commit is contained in:
@@ -30,10 +30,6 @@ func (s *SearchOptions) HashString() (string, error) {
|
||||
return base64.StdEncoding.EncodeToString(h.Sum(nil)), nil
|
||||
}
|
||||
|
||||
func GetUserPermissionCacheKey(user identity.Requester) string {
|
||||
return fmt.Sprintf("rbac-permissions-%s", user.GetCacheKey())
|
||||
}
|
||||
|
||||
func GetSearchPermissionCacheKey(log log.Logger, user identity.Requester, searchOptions SearchOptions) (string, error) {
|
||||
searchHash, err := searchOptions.HashString()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user