diff options
author | Isabella Siu <isabella.siu@10gen.com> | 2019-01-11 11:16:24 -0500 |
---|---|---|
committer | Isabella Siu <isabella.siu@10gen.com> | 2019-02-08 14:34:32 -0500 |
commit | 8e5e745e98d33633e7d24a2629f22cdba79d9851 (patch) | |
tree | 9e02d92dadcf67140fe8707d792e55cf12b5443e /src/mongo/s/query/cluster_client_cursor.h | |
parent | 7a7baa2539ec169335086e45c7d0b85ba7cdb877 (diff) | |
download | mongo-8e5e745e98d33633e7d24a2629f22cdba79d9851.tar.gz |
SERVER-37836 re-evaluate authorization for originating command in getMore
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h index 06d7efb4abf..e9e3afb6b0f 100644 --- a/src/mongo/s/query/cluster_client_cursor.h +++ b/src/mongo/s/query/cluster_client_cursor.h @@ -113,6 +113,13 @@ public: virtual BSONObj getOriginatingCommand() const = 0; /** + * Returns the privileges required to run a getMore against this cursor. This is the same as the + * set of privileges which would have been required to create the cursor in the first place. + */ + virtual const PrivilegeVector& getOriginatingPrivileges() const& = 0; + void getOriginatingPrivileges() && = delete; + + /** * Returns a reference to the vector of remote hosts involved in this operation. */ virtual std::size_t getNumRemotes() const = 0; |