summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_cursor_manager.h
diff options
context:
space:
mode:
authorIsabella Siu <isabella.siu@10gen.com>2019-01-11 11:16:24 -0500
committerIsabella Siu <isabella.siu@10gen.com>2019-02-08 14:34:32 -0500
commit8e5e745e98d33633e7d24a2629f22cdba79d9851 (patch)
tree9e02d92dadcf67140fe8707d792e55cf12b5443e /src/mongo/s/query/cluster_cursor_manager.h
parent7a7baa2539ec169335086e45c7d0b85ba7cdb877 (diff)
downloadmongo-8e5e745e98d33633e7d24a2629f22cdba79d9851.tar.gz
SERVER-37836 re-evaluate authorization for originating command in getMore
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_manager.h')
-rw-r--r--src/mongo/s/query/cluster_cursor_manager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_cursor_manager.h b/src/mongo/s/query/cluster_cursor_manager.h
index 9e7d7a7b61c..886a43bce90 100644
--- a/src/mongo/s/query/cluster_cursor_manager.h
+++ b/src/mongo/s/query/cluster_cursor_manager.h
@@ -194,6 +194,13 @@ public:
BSONObj getOriginatingCommand() const;
/**
+ * Returns the privleges for the original command object which created this cursor.
+ */
+
+ const PrivilegeVector& getOriginatingPrivileges() const&;
+ void getOriginatingPrivileges() && = delete;
+
+ /**
* Returns a reference to the vector of remote hosts involved in this operation.
*/
std::size_t getNumRemotes() const;