Skip to content

Commit

Permalink
CR changes #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
LizaShak committed Aug 12, 2021
1 parent d2a3ef2 commit bca3145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion management_api_app/api/routes/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def create_workspace_service(workspace_create: WorkspaceServiceInCreate,
workspace_service_repo: WorkspaceServiceRepository = Depends(
get_repository(WorkspaceServiceRepository)),
user: User = Depends(get_current_user),
workspace: Workspace = Depends(get_workspace_by_workspace_id_from_path)
workspace: Workspace = Depends(get_deployed_workspace_by_workspace_id_from_path)
) -> WorkspaceServiceIdInResponse:
access_service = get_access_service()
if access_service.get_workspace_role(user, workspace) != WorkspaceRole.Owner:
Expand Down
2 changes: 1 addition & 1 deletion management_api_app/models/schemas/user_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UserResourceInCreate(BaseModel):
class Config:
schema_extra = {
"example": {
"userResourceType": "guacamole",
"userResourceType": "user-resource-type",
"properties": {
"display_name": "my user resource",
"description": "some description",
Expand Down

0 comments on commit bca3145

Please sign in to comment.