Reports a missing permission when updating a user's role and permissions

This commit is contained in:
BinaryAlley committed 2026-09-27 21:21:04 +03:00
1 parent cd1386b9e7
commit ab4d596500
3 files changed
+21 -16

No files matched your search

@@ -92,13 +92,13 @@ public class UpdateUserRoleAndPermissionsEndpointSummary : Summary<UpdateUserRol
}
);
Response(404, "The request failed because the provided role or user do not exist.", "application/problem+json",
Response(404, "The request failed because the provided role, user or permission do not exist.", "application/problem+json",
example: new
{
type = "https://tools.ietf.org/html/rfc9110#section-15.5.5",
title = "General.NotFound",
status = 404,
detail = "RoleNotFound | UserDoesNotExist",
detail = "RoleNotFound | UserDoesNotExist | PermissionNotFound",
instance = "/api/v1/auth/users/{userId}/role-and-permissions",
traceId = "00-57d15dadd702dbd4aeb5dc9b7cee68ee-9330237dbb2ce0e5-00"
}