Browse Source

fix role for set content

Guénaël Muller 6 years ago
parent
commit
5a2a0b3f8e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tracim/views/contents_api/html_document_controller.py

+ 1 - 0
tracim/views/contents_api/html_document_controller.py View File

@@ -132,6 +132,7 @@ class HTMLDocumentController(Controller):
132 132
     @hapic.handle_exception(InsufficientUserProfile, HTTPStatus.FORBIDDEN)
133 133
     @hapic.handle_exception(WorkspaceNotFound, HTTPStatus.FORBIDDEN)
134 134
     @hapic.handle_exception(AuthenticationFailed, HTTPStatus.BAD_REQUEST)
135
+    @require_workspace_role(UserRoleInWorkspace.CONTRIBUTOR)
135 136
     @require_content_types([htmlpage_type])
136 137
     @hapic.input_path(WorkspaceAndContentIdPathSchema())
137 138
     @hapic.input_body(SetContentStatusSchema())