diff options
Diffstat (limited to 'src/mongo/db/auth/resource_pattern.cpp')
-rw-r--r-- | src/mongo/db/auth/resource_pattern.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/auth/resource_pattern.cpp b/src/mongo/db/auth/resource_pattern.cpp index fe42c22973b..75ede19ebb0 100644 --- a/src/mongo/db/auth/resource_pattern.cpp +++ b/src/mongo/db/auth/resource_pattern.cpp @@ -52,6 +52,15 @@ std::string ResourcePattern::toString() const { return "<all normal resources>"; case MatchTypeEnum::kMatchAnyResource: return "<all resources>"; + case MatchTypeEnum::kMatchExactSystemBucketResource: + return "<" + _ns.db().toString() + ".system.bucket" + _ns.coll().toString() + + " resources>"; + case MatchTypeEnum::kMatchSystemBucketInAnyDBResource: + return "<any system.bucket." + _ns.coll().toString() + ">"; + case MatchTypeEnum::kMatchAnySystemBucketInDBResource: + return "<" + _ns.db().toString() + "system.bucket.*>"; + case MatchTypeEnum::kMatchAnySystemBucketResource: + return "<any system.bucket resources>"; default: return "<unknown resource pattern type>"; } |