-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base_filters doesn't work for filtering relationship #1745
Comments
Why do you change the example? |
i had also tried the original code:
when login with user2_company2, in view "List Contacts", it shows all the 99 records instead of only records for company2 |
Flask-Appbuilder version: 3.3.3pip freeze output:apispec==3.3.0 |
The function "get_inner_filters" in "interface.py" causes the problem. My solution:
|
thanks @ThomasP0815 . |
Thank you @ThomasP0815 . |
Base_filters will only apply on list views ! |
Ok thank you, I'm looking this way. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Feel free to reopen it if it's still relevant to you. Thank you |
Environment
Flask-Appbuilder version: 3.3.3
pip freeze output:
Describe the expected results
Tell us what should happen.
In example: extendsecurity/extendsecurity2, if base_filters set to filter on relationship, it doesn't take effect to filter by the user's company. Instead it shows all the records
E.g. In extendsecurity2 example
Steps to reproduce
Run example: extendsecurity/extendsecurity2
The text was updated successfully, but these errors were encountered: