MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / post

Method post

apps/users/views/user.py:106–108  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

104 @has_permissions(PermissionConstants.SWITCH_LANGUAGE, RoleConstants.ADMIN, RoleConstants.USER,
105 RoleConstants.WORKSPACE_MANAGE)
106 def post(self, request: Request):
107 data = {**request.data, 'user_id': request.user.id}
108 return result.success(SwitchLanguageSerializer(data=data).switch())
109
110
111class TestWorkspacePermissionUserView(APIView):

Callers

nothing calls this directly

Calls 3

switchMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected