Skip to content

Commit

Permalink
(datastore) tidy-up redis keys
Browse files Browse the repository at this point in the history
  • Loading branch information
uatuko committed Jul 6, 2023
1 parent b6e2d79 commit f0b5a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datastore/access-policies.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down
2 changes: 1 addition & 1 deletion src/datastore/rbac-policies.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0b5a1f

Please sign in to comment.