feat: connect workspace access lifecycle to admin api
This commit is contained in:
@@ -124,6 +124,12 @@ impl From<RegistryError> for ApiError {
|
||||
RegistryError::UserNotFound { user_id } => {
|
||||
Self::not_found(format!("user {user_id} was not found"))
|
||||
}
|
||||
RegistryError::MembershipNotFound {
|
||||
workspace_id,
|
||||
user_id,
|
||||
} => Self::not_found(format!(
|
||||
"membership for user {user_id} in workspace {workspace_id} was not found"
|
||||
)),
|
||||
RegistryError::AgentNotFound { agent_id } => {
|
||||
Self::not_found(format!("agent {agent_id} was not found"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user