This time, its internal.
ADS Drops a View created by an Admin User and it is dropped by a READ Only User.
DROP VIEW for ReadOnly User
Steps to reproduce:
1) Create a Admin User --> DBAdmin role
2) Create a Read Only User with Read Role
Now as an Admin USer Create a View.
Creating views in MongoDB (tutorialspoint.com)
3) Now login as a the ReadOnly User, go ahead and drop that View, and it gets dropped.
Thanks
Re-start the mongod instance with the --auth command line option or, if using a configuration file, the security.authorization setting.
security.authorization
Type: string
Default: disabled
Enable or disable Role-Based Access Control (RBAC) to govern each user's access to database resources and operations.
Set this option to one of the following:
Value
|
Description
|
---|---|
enabled |
A user can access only the database resources and actions for which they have been granted privileges.
|
disabled |
A user can access any database and perform any action.
|
See Role-Based Access Control for more information.
The security.authorization
setting is available only for mongod
.
Issue #15898 |
Resolved |
Won't Fix |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
Re-start the mongod instance with the --auth command line option or, if using a configuration file, the security.authorization setting.
security.authorization
Type: string
Default: disabled
Enable or disable Role-Based Access Control (RBAC) to govern each user's access to database resources and operations.
Set this option to one of the following:
enabled
disabled
See Role-Based Access Control for more information.
The
security.authorization
setting is available only formongod
.