diff options
author | Varun Ravichandran <varun.ravichandran@mongodb.com> | 2021-09-16 21:04:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-01 14:56:46 +0000 |
commit | fc05532015895c8907437ea0c06fe83ab6c6f1dc (patch) | |
tree | 07829e19f6de8088e44f1b75a942944100f8be55 /src/mongo/db/auth/user.h | |
parent | 55a9a92bce2fe94ef3efe42123fa31617f3d5fcc (diff) | |
download | mongo-fc05532015895c8907437ea0c06fe83ab6c6f1dc.tar.gz |
SERVER-59148: Periodically refresh LDAP users in authorization user cache
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r-- | src/mongo/db/auth/user.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h index 4a6b204ca76..53e5e2a7574 100644 --- a/src/mongo/db/auth/user.h +++ b/src/mongo/db/auth/user.h @@ -245,6 +245,8 @@ public: */ Status validateRestrictions(OperationContext* opCtx) const; + bool hasDifferentRoles(const User& otherUser) const; + private: // Unique ID (often UUID) for this user. May be empty for legacy users. UserId _id; |