craig-rueda commented on a change in pull request #9046: [query] deprecate
can_only_access_owned_queries
URL:
https://github.com/apache/incubator-superset/pull/9046#discussion_r372501142
##########
File path: superset/security/manager.py
##########
@@ -177,15 +177,13 @@ def can_access(self, permission_name: str, view_name:
str) -> bool:
return self.is_item_public(permission_name, view_name)
return self._has_view_access(user, permission_name, view_name)
- def can_only_access_owned_queries(self) -> bool:
+ def can_access_all_queries(self) -> bool:
"""
- Return True if the user can only access owned queries, False otherwise.
+ Return True if the user can access all queries, False otherwise.
- :returns: Whether the use can only access owned queries
+ :returns: Whether the use can access all queries
Review comment:
nit: typo `use` -> `user`
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]