Re: Extending AirflowSecurityManager

2019-01-28 Thread Victor Noël
Thank you for your answer, In practice, I tested, and the behaviour of the app is quite strange: after logging, I am properly logged and I suppose identified as an Admin (since `get_user_roles` is now returning Admin for my user with this change), some of the button that I couldn't see if I wasn't

Re: Extending AirflowSecurityManager

2019-01-25 Thread Tao Feng
I think you could extend that method. We shouldn't call db directly unless FAB doesn't provide the api to do so. On Wed, Jan 23, 2019 at 8:18 AM Victor Noël wrote: > Hi, > > I'm upgrading from 1.10.1 to 1.10.2 and I had a custom SecurityManager that > was extending flask_appbuilder.security.sqla

Extending AirflowSecurityManager

2019-01-23 Thread Victor Noël
Hi, I'm upgrading from 1.10.1 to 1.10.2 and I had a custom SecurityManager that was extending flask_appbuilder.security.sqla.manager.SecurityManager but it seems that now I need to extend AirflowSecurityManager. It's fine by me but I would like to understand something: if I want to add Admin role