vincbeck commented on issue #47412:
URL: https://github.com/apache/airflow/issues/47412#issuecomment-2704167308

   I think we should create a new method in the auth manager that give you this 
information. A very similar method we used to have: `filter_menu_items`, I 
needed to delete this method because it relied on Flask but we should create a 
new one. Something like this:
   
   ```
   def filter_menu_items(items: list[str]) -> list[str]:
     ... 
   ```
   
   The function takes a list of menu items (which would be the name of the 
menu: "Variables", "Connections") and returns the same list but after having 
filtered out menu items the user do not have access to. This is the best option 
we have I think. If we do that, we need to define the exhaustive list of menu 
items (with an enum or something similar)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to