This makes sorting unusable for guest users in embedded contexts.
Guest users should be able to sort table columns in embedded dashboards (client-side and/or server-side), without triggering permission errors (I mean, it's just sorting)
2026-01-12 16:57:48,567:WARNING:superset.views.error_handling:SupersetErrorException
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/views/base_api.py", line 120, in wraps
duration, response = time_function(f, self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/utils/core.py", line 1410, in time_function
response = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/utils/log.py", line 304, in wrapper
value = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/app/superset/charts/data/api.py", line 239, in data
command.validate()
File "/app/superset/commands/chart/data/get_data_command.py", line 73, in validate
self._query_context.raise_for_access()
File "/app/superset/common/query_context.py", line 139, in raise_for_access
self._processor.raise_for_access()
File "/app/superset/common/query_context_processor.py", line 1246, in raise_for_access
security_manager.raise_for_access(query_context=self._query_context)
File "/app/superset/security/manager.py", line 2406, in raise_for_access
raise SupersetSecurityException(
superset.exceptions.SupersetSecurityException: Guest user cannot modify chart payload
Bug description
Summary
When viewing an embedded dashboard using a guest token, attempting to sort a table chart by clicking a column header causes the chart to fail with a “Data error” message. The error shown is:
This makes sorting unusable for guest users in embedded contexts.
Environment
Steps to reproduce
Actual result
Expected result
Guest users should be able to sort table columns in embedded dashboards (client-side and/or server-side), without triggering permission errors (I mean, it's just sorting)
Additional notes
Server Side Exception
Attachments
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.11
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist