-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
[query] deprecate can_only_access_owned_queries #9046
[query] deprecate can_only_access_owned_queries #9046
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, otherwise LGTM
Codecov Report
@@ Coverage Diff @@
## master #9046 +/- ##
==========================================
+ Coverage 59.16% 59.45% +0.29%
==========================================
Files 367 369 +2
Lines 11680 11747 +67
Branches 2863 2888 +25
==========================================
+ Hits 6910 6984 +74
+ Misses 4591 4584 -7
Partials 179 179
Continue to review full report at Codecov.
|
superset/security/manager.py
Outdated
@@ -538,11 +536,10 @@ def create_custom_permissions(self) -> None: | |||
""" | |||
Create custom FAB permissions. | |||
""" | |||
|
|||
self.add_permission_view_menu("all_datasource_access", "all_datasource_access") | |||
self.add_permission_view_menu("all_database_access", "all_database_access") | |||
self.add_permission_view_menu( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is creating the permission tied to the concept of a view
and the concept of a menu
?
@graceguo-supercat it would be awesome if you could take a look |
CATEGORY
SUMMARY
Proposal to deprecate
can_only_access_owned_queries
in favor of the newall_query_access
The default changes from:
to:
Admin
users.all_query_access
can be added to existing roles giving their corresponding user's access to everyone's queriesRunning
superset init
is required to create the new permissionADDITIONAL INFORMATION
REVIEWERS
@willbarrett