endpoint_restriction_available updated
This commit is contained in:
@@ -68,7 +68,7 @@ def endpoint_restriction_list(request: Request):
|
||||
|
||||
|
||||
@endpoint_restriction_route.post(
|
||||
path="/endpoint/available", summary="List extra restriction to endpoints list"
|
||||
path="/endpoint/available", summary="Check extra restriction to endpoint available"
|
||||
)
|
||||
def endpoint_restriction_available(request: Request, data: CheckEndpointAccess):
|
||||
token_dict, records = parse_token_object_to_dict(request=request), []
|
||||
@@ -96,7 +96,7 @@ def endpoint_restriction_available(request: Request, data: CheckEndpointAccess):
|
||||
EndpointRestriction.raise_http_exception(
|
||||
status_code="HTTP_404_NOT_FOUND",
|
||||
error_case="UNAUTHORIZED",
|
||||
message="Only Occupant can see this data",
|
||||
message="This endpoint is not available for this occupant",
|
||||
data={},
|
||||
)
|
||||
return dict(
|
||||
@@ -112,7 +112,7 @@ def endpoint_restriction_available(request: Request, data: CheckEndpointAccess):
|
||||
EndpointRestriction.raise_http_exception(
|
||||
status_code="HTTP_404_NOT_FOUND",
|
||||
error_case="UNAUTHORIZED",
|
||||
message="Only Occupant can see this data",
|
||||
message="This endpoint is not available for this employee",
|
||||
data={},
|
||||
)
|
||||
return dict(
|
||||
|
||||
Reference in New Issue
Block a user