errors: rework PermissionDeniedError #1559
Annotations
3 errors
|
Run tests:
invenio_records_resources/services/errors.py#L1
Black format check
--- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.829218+00:00
+++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:47.295058+00:00
@@ -23,11 +23,12 @@
def __init__(self, action_name=None, record=None, *args, **kwargs):
"""Initialize exception."""
self.record = record
self.action_name = action_name
super(RecordPermissionDeniedError, self).__init__(*args, **kwargs)
-
+
+
class PermissionDeniedError(PermissionDenied):
"""Permission denied error."""
description = "Permission denied."
|
Run tests
The operation was canceled.
|
Loading