Description
Body
Plugins are loaded at the start of the web application to be able to fill extra menu items in the navbar.
Authenticated users but without read
permissions on plugins will get a 403
forbidden error on that endpoint. That error is handled in a way that prevent the rest of the application to render and show a Forbidden
page.
We should instead fail gracefully and continue rendering the UI even if extra plugins menu items cannot be fetched because the user does not have access. This way user can still use the default UI.
We want all user to be able to see extra menu items coming from the plugins. We should add an entry in the ui/config enpoints with plugins_extra_menu_items
there (iterate over plugins appbuilder_menu_items
), so all authenticated users can see them. Plug the UI on this new config attribute, not calling the public/providers
endpoint anymore.
Committer
- I acknowledge that I am a maintainer/committer of the Apache Airflow project.