dpgaspar 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_r362808015
########## File path: superset/views/dashboard/api.py ########## @@ -26,13 +27,32 @@ import superset.models.core as models from superset import appbuilder -from superset.exceptions import SupersetException +from superset.exceptions import SupersetException, SupersetSecurityException from superset.utils import core as utils from superset.views.base import BaseSupersetModelRestApi, BaseSupersetSchema +from ..base import check_ownership from .mixin import DashboardMixin +def check_owner(f): Review comment: Agree, moved it to `views/base.py` ---------------------------------------------------------------- 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]
