|
@@ -38,7 +38,7 @@ class HTMLDocumentController(Controller):
|
38
|
38
|
@hapic.handle_exception(NotAuthenticated, HTTPStatus.UNAUTHORIZED)
|
39
|
39
|
@hapic.handle_exception(InsufficientUserWorkspaceRole, HTTPStatus.FORBIDDEN)
|
40
|
40
|
@hapic.handle_exception(WorkspaceNotFound, HTTPStatus.FORBIDDEN)
|
41
|
|
- @hapic.handle_exception(AuthenticationFailed, HTTPStatus.BAD_REQUEST)
|
|
41
|
+ @hapic.handle_exception(AuthenticationFailed, HTTPStatus.FORBIDDEN)
|
42
|
42
|
@hapic.handle_exception(ContentTypeNotAllowed, HTTPStatus.BAD_REQUEST)
|
43
|
43
|
@require_workspace_role(UserRoleInWorkspace.READER)
|
44
|
44
|
@require_content_types([html_documents_type])
|
|
@@ -64,7 +64,7 @@ class HTMLDocumentController(Controller):
|
64
|
64
|
@hapic.handle_exception(NotAuthenticated, HTTPStatus.UNAUTHORIZED)
|
65
|
65
|
@hapic.handle_exception(InsufficientUserWorkspaceRole, HTTPStatus.FORBIDDEN)
|
66
|
66
|
@hapic.handle_exception(WorkspaceNotFound, HTTPStatus.FORBIDDEN)
|
67
|
|
- @hapic.handle_exception(AuthenticationFailed, HTTPStatus.BAD_REQUEST)
|
|
67
|
+ @hapic.handle_exception(AuthenticationFailed, HTTPStatus.FORBIDDEN)
|
68
|
68
|
@require_workspace_role(UserRoleInWorkspace.CONTRIBUTOR)
|
69
|
69
|
@require_content_types([html_documents_type])
|
70
|
70
|
@hapic.input_path(WorkspaceAndContentIdPathSchema())
|
|
@@ -102,7 +102,7 @@ class HTMLDocumentController(Controller):
|
102
|
102
|
@hapic.handle_exception(NotAuthenticated, HTTPStatus.UNAUTHORIZED)
|
103
|
103
|
@hapic.handle_exception(InsufficientUserWorkspaceRole, HTTPStatus.FORBIDDEN)
|
104
|
104
|
@hapic.handle_exception(WorkspaceNotFound, HTTPStatus.FORBIDDEN)
|
105
|
|
- @hapic.handle_exception(AuthenticationFailed, HTTPStatus.BAD_REQUEST)
|
|
105
|
+ @hapic.handle_exception(AuthenticationFailed, HTTPStatus.FORBIDDEN)
|
106
|
106
|
@require_workspace_role(UserRoleInWorkspace.READER)
|
107
|
107
|
@require_content_types([html_documents_type])
|
108
|
108
|
@hapic.input_path(WorkspaceAndContentIdPathSchema())
|
|
@@ -131,7 +131,7 @@ class HTMLDocumentController(Controller):
|
131
|
131
|
@hapic.handle_exception(NotAuthenticated, HTTPStatus.UNAUTHORIZED)
|
132
|
132
|
@hapic.handle_exception(InsufficientUserWorkspaceRole, HTTPStatus.FORBIDDEN)
|
133
|
133
|
@hapic.handle_exception(WorkspaceNotFound, HTTPStatus.FORBIDDEN)
|
134
|
|
- @hapic.handle_exception(AuthenticationFailed, HTTPStatus.BAD_REQUEST)
|
|
134
|
+ @hapic.handle_exception(AuthenticationFailed, HTTPStatus.FORBIDDEN)
|
135
|
135
|
@require_workspace_role(UserRoleInWorkspace.CONTRIBUTOR)
|
136
|
136
|
@require_content_types([html_documents_type])
|
137
|
137
|
@hapic.input_path(WorkspaceAndContentIdPathSchema())
|