Skip to content

Commit

Permalink
fix auth of NotAllowedOnShardedCollectionCmd #527
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Sep 23, 2013
1 parent 3057a93 commit 16e65b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mongo/s/commands_public.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ namespace mongo {
public:
NotAllowedOnShardedClusterCmd(const char *n) : PublicGridCommand(n) {}

virtual void addRequiredPrivileges(const std::string& dbname,
const BSONObj& cmdObj,
std::vector<Privilege>* out) {}

virtual bool run(const string &, BSONObj &, int, string &errmsg, BSONObjBuilder &, bool) {
// TODO: Allow multi-statement transactions on databases that aren't sharded.
// This requires us to restrict a multi-statement transaction to a single database, which we're not sure we want to do yet.
Expand Down

0 comments on commit 16e65b2

Please sign in to comment.