Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
In the reference documentation for createRole() http://docs.mongodb.org/manual/reference/method/db.createRole/#db.createRole
the relationship between the privileges and roles lists in the role document argument is not clear.
For instance, do the privilieges in the privileges list override or add to the ones inherited from the roles list?
If I leave the privileges list empty but include roles to inherit from, does the custom role get no privileges because the list is empty or all of the privileges from the inherited roles?
I was left having to experiment with different the two parameters to understand the behavior.
Thanks.