You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/28 22:01:54 UTC

[GitHub] [airflow] mik-laj edited a comment on issue #13340: Anonymous users aren't able to view DAGs even with Admin Role

mik-laj edited a comment on issue #13340:
URL: https://github.com/apache/airflow/issues/13340#issuecomment-751877138


   @potiuk  I can imagine that some DAGs will be read-only to the public.  Giving full administrator privileges is an extreme case, but giving read-only one or two DAGs is something that makes sense to support. I looked at the code quickly and I don't find it difficult to add support for this use case.
   
   I think if we improve this one SQL query and use get_user_roles instead of our own SQL query it should work.
   
   If the user can configure their own role it looks as if this was provided functionality by Flask App Builder.  Some actions then require an additional user.is_anonymous case to be considered, but this is not difficult.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org