betodealmeida commented on a change in pull request #12103:
URL: https://github.com/apache/superset/pull/12103#discussion_r556996392



##########
File path: superset/views/utils.py
##########
@@ -430,6 +431,23 @@ def is_owner(obj: Union[Dashboard, Slice], user: User) -> 
bool:
     return obj and user in obj.owners
 
 
+def check_resource_permissions(check_perms: Callable[..., Any],) -> 
Callable[..., Any]:

Review comment:
       Ah, nice... moving this out removes some of the complexity of the 
decorator.




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to