[IMP] config: allow blocking access to db manager
- The `--no-database-list` option will now also block access to database management functions and screens. Presumably this flag should only be used in production when all databases have been provisioned, so the admin should like to block access to the db manager at the same time. - If no `--database` or `-d` parameter is provided, the system will be unable to fetch a list of databases at all, so users will be blocked with an error message. - Hide the link on the login screen to the DB manager when it is disabled, to prevent sending users to an error page. - Weak attempt at updating the documentation Note: the security check for RPC methods could have been done in the RPC dispatcher, however that would not have protected service methods when called directly, e.g. by a controller (e.g. the dump method).
Showing
- addons/web/controllers/main.py 3 additions, 0 deletionsaddons/web/controllers/main.py
- addons/web/views/database_manager.html 7 additions, 3 deletionsaddons/web/views/database_manager.html
- doc/setup/deploy.rst 20 additions, 9 deletionsdoc/setup/deploy.rst
- odoo/service/db.py 22 additions, 1 deletionodoo/service/db.py
- odoo/tools/config.py 3 additions, 1 deletionodoo/tools/config.py
Loading
Please register or sign in to comment