Permalink
Browse files

Link to privilege documentation in add_user.

  • Loading branch information...
1 parent 1ed7718 commit fedf3a6febc66da02f410f320937e1ae4ff66313 @behackett behackett committed Mar 22, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 pymongo/database.py
View
@@ -618,8 +618,10 @@ def add_user(self, name, password=None, read_only=None, **kwargs):
- `password` (optional): the password of the user to create. Can not
be used with the ``userSource`` argument.
- `read_only` (optional): if ``True`` the user will be read only
- - `**kwargs` (optional): optional parameters for the user document
- (e.g. ``userSource``, ``otherDBRoles``, or ``roles``)
+ - `**kwargs` (optional): optional fields for the user document
+ (e.g. ``userSource``, ``otherDBRoles``, or ``roles``). See
+ `<http://docs.mongodb.org/manual/reference/privilege-documents>`_
+ for more information.
.. note:: The use of optional keyword arguments like ``userSource``,
``otherDBRoles``, or ``roles`` requires MongoDB >= 2.4.0

0 comments on commit fedf3a6

Please sign in to comment.