Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/server/acl/acl_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ static std::string AclToString(uint32_t acl_category) {
const std::string prefix = "+@";
const std::string postfix = " ";

for (uint32_t step = 0, cat = 0; cat != JSON; cat = 1ULL << ++step) {
for (const auto& [cat_name, cat] : CATEGORY_INDEX_TABLE) {
if (acl_category & cat) {
absl::StrAppend(&tmp, prefix, REVERSE_CATEGORY_INDEX_TABLE[step], postfix);
absl::StrAppend(&tmp, prefix, cat_name, postfix);
}
}
tmp.erase(tmp.size());
Expand Down