villebro commented on a change in pull request #8911: [dashboard] Fix, prevent
delete and update on dashes not owned
URL:
https://github.com/apache/incubator-superset/pull/8911#discussion_r362866770
##########
File path: superset/views/base.py
##########
@@ -155,6 +155,26 @@ def wraps(self, *args, **kwargs):
return functools.update_wrapper(wraps, f)
+def api_exists_owned(f):
Review comment:
Not wanting to get hung up on details, but personally I would prefer
something slightly more verbose, e.g. `check_ownership_and_item_exists`.
----------------------------------------------------------------
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]