Skip to content

Commit

Permalink
PATCH: forbid to non admin to create topic properties (#705)
Browse files Browse the repository at this point in the history
* forbid to non admin to create topic properties

* remvoe prints

* users and guests can only edit their own BCFs

* remove PUT viewpoint route

* fix import

* code optimization

* remove dead code
  • Loading branch information
Bimdata-io committed Nov 27, 2023
1 parent 0c8c8f4 commit 792e47f
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 1,130 deletions.
3 changes: 0 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ bimdata_api_client/model/patched_topic_type_request.py
bimdata_api_client/model/patched_unit_request.py
bimdata_api_client/model/patched_user_cloud_update_request.py
bimdata_api_client/model/patched_user_project_update_request.py
bimdata_api_client/model/patched_viewpoint_request.py
bimdata_api_client/model/patched_visa_comment_request.py
bimdata_api_client/model/patched_visa_request.py
bimdata_api_client/model/patched_visa_validation_request.py
Expand Down Expand Up @@ -380,7 +379,6 @@ docs/PatchedTopicTypeRequest.md
docs/PatchedUnitRequest.md
docs/PatchedUserCloudUpdateRequest.md
docs/PatchedUserProjectUpdateRequest.md
docs/PatchedViewpointRequest.md
docs/PatchedVisaCommentRequest.md
docs/PatchedVisaRequest.md
docs/PatchedVisaValidationRequest.md
Expand Down Expand Up @@ -627,7 +625,6 @@ test/test_patched_topic_type_request.py
test/test_patched_unit_request.py
test/test_patched_user_cloud_update_request.py
test/test_patched_user_project_update_request.py
test/test_patched_viewpoint_request.py
test/test_patched_visa_comment_request.py
test/test_patched_visa_request.py
test/test_patched_visa_validation_request.py
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ from bimdata_api_client.model.patched_stage_request import PatchedStageRequest
from bimdata_api_client.model.patched_topic_request import PatchedTopicRequest
from bimdata_api_client.model.patched_topic_status_request import PatchedTopicStatusRequest
from bimdata_api_client.model.patched_topic_type_request import PatchedTopicTypeRequest
from bimdata_api_client.model.patched_viewpoint_request import PatchedViewpointRequest
from bimdata_api_client.model.pin import Pin
from bimdata_api_client.model.pin_request import PinRequest
from bimdata_api_client.model.priority import Priority
Expand Down Expand Up @@ -186,7 +185,6 @@ Class | Method | HTTP request | Description
*BcfApi* | [**full_update_full_topic**](docs/BcfApi.md#full_update_full_topic) | **PUT** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update all fields of a topic
*BcfApi* | [**full_update_pin**](docs/BcfApi.md#full_update_pin) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update all fields of a Pin
*BcfApi* | [**full_update_topic**](docs/BcfApi.md#full_update_topic) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update all fields of a topic
*BcfApi* | [**full_update_viewpoint**](docs/BcfApi.md#full_update_viewpoint) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid} | Update all fields of a Viewpoint
*BcfApi* | [**get_auth**](docs/BcfApi.md#get_auth) | **GET** /bcf/2.1/auth | Retrieve Authentication Information
*BcfApi* | [**get_bcf_project**](docs/BcfApi.md#get_bcf_project) | **GET** /bcf/2.1/projects/{id} | Retrieve a BCF project
*BcfApi* | [**get_bcf_projects**](docs/BcfApi.md#get_bcf_projects) | **GET** /bcf/2.1/projects | Retrieve all BCF projects
Expand Down Expand Up @@ -222,7 +220,6 @@ Class | Method | HTTP request | Description
*BcfApi* | [**update_full_topic**](docs/BcfApi.md#update_full_topic) | **PATCH** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update some fields of a topic
*BcfApi* | [**update_pin**](docs/BcfApi.md#update_pin) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update some fields of a Pin
*BcfApi* | [**update_topic**](docs/BcfApi.md#update_topic) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update some fields of a topic
*BcfApi* | [**update_viewpoint**](docs/BcfApi.md#update_viewpoint) | **PATCH** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid} | Update some fields of a Viewpoint
*CollaborationApi* | [**accept_user_invitation**](docs/CollaborationApi.md#accept_user_invitation) | **POST** /user/invitations/{id}/accept | Accept an invitation
*CollaborationApi* | [**accept_validation**](docs/CollaborationApi.md#accept_validation) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/visa/{visa_pk}/validation/{id}/accept | Accept a validation
*CollaborationApi* | [**add_document_tag**](docs/CollaborationApi.md#add_document_tag) | **POST** /cloud/{cloud_pk}/project/{project_pk}/document/{document_pk}/tag | Add a tag to a document
Expand Down Expand Up @@ -763,7 +760,6 @@ Class | Method | HTTP request | Description
- [PatchedUnitRequest](docs/PatchedUnitRequest.md)
- [PatchedUserCloudUpdateRequest](docs/PatchedUserCloudUpdateRequest.md)
- [PatchedUserProjectUpdateRequest](docs/PatchedUserProjectUpdateRequest.md)
- [PatchedViewpointRequest](docs/PatchedViewpointRequest.md)
- [PatchedVisaCommentRequest](docs/PatchedVisaCommentRequest.md)
- [PatchedVisaRequest](docs/PatchedVisaRequest.md)
- [PatchedVisaValidationRequest](docs/PatchedVisaValidationRequest.md)
Expand Down
Loading

0 comments on commit 792e47f

Please sign in to comment.