betodealmeida commented on code in PR #23200:
URL: https://github.com/apache/superset/pull/23200#discussion_r1119369063
##########
superset/charts/commands/importers/v1/utils.py:
##########
@@ -21,17 +21,26 @@
from flask import g
from sqlalchemy.orm import Session
+from superset import security_manager
+from superset.commands.exceptions import ImportFailedError
from superset.models.slice import Slice
def import_chart(
session: Session, config: Dict[str, Any], overwrite: bool = False
) -> Slice:
+ can_write = security_manager.can_access("can_write", "Chart")
existing = session.query(Slice).filter_by(uuid=config["uuid"]).first()
+ print("BETO")
Review Comment:
Oops!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]