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:
Ville Brofeldt
2022-05-26 14:45:20 +03:00
committed by GitHub
parent e9007e3c2c
commit 64c4226817
18 changed files with 175 additions and 142 deletions

View File

@@ -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.")