mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(temporary-cache): when user is anonymous (#20181)
* fix(temporary-cache): fail on anonymous user * make exceptions generic * fix test * remove redundant bool return * fix unit tests
This commit is contained in:
@@ -43,3 +43,7 @@ class TemporaryCacheUpdateFailedError(UpdateFailedError):
|
||||
|
||||
class TemporaryCacheAccessDeniedError(ForbiddenError):
|
||||
message = _("You don't have permission to modify the value.")
|
||||
|
||||
|
||||
class TemporaryCacheResourceNotFoundError(ForbiddenError):
|
||||
message = _("Resource was not found.")
|
||||
|
||||
Reference in New Issue
Block a user