From f0b5a1fe7c2a0797981258f693afef992bf8a239 Mon Sep 17 00:00:00 2001 From: Uditha Atukorala Date: Thu, 6 Jul 2023 18:23:26 +0100 Subject: [PATCH] (datastore) tidy-up redis keys --- src/datastore/access-policies.h | 2 +- src/datastore/rbac-policies.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datastore/access-policies.h b/src/datastore/access-policies.h index a3b491e4..ae950c95 100644 --- a/src/datastore/access-policies.h +++ b/src/datastore/access-policies.h @@ -26,7 +26,7 @@ class AccessPolicy { resource_t resource; const std::string key() const noexcept { - return "access:(" + identity_id + ")>[" + resource + "]"; + return "access:(" + identity_id + ")›[" + resource + "]"; }; Record(const identity_t i, const resource_t r) : identity_id(i), resource(r) {} diff --git a/src/datastore/rbac-policies.h b/src/datastore/rbac-policies.h index c9944e2a..68ed5374 100644 --- a/src/datastore/rbac-policies.h +++ b/src/datastore/rbac-policies.h @@ -35,7 +35,7 @@ class RbacPolicy { std::string permission; const std::string key() const noexcept { - return "rbac:(" + identityId + ")>[" + permission + "]"; + return "rbac:(" + identityId + ")›[" + permission + "]"; }; bool operator==(const Record &) const noexcept = default;