@acarmisc/backstage-plugin-litellm-backend 0.16.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -10292,12 +10292,9 @@ function registerKeysRoutes(router, ctx) {
10292
10292
  try {
10293
10293
  const { keyId } = req.params;
10294
10294
  const { tokenEntityRef, key } = await authorizeKeyAction(req, keyId);
10295
- const isOwnerUnblockingOwnBlock = key.metadata?.blocked_by === tokenEntityRef;
10296
- if (!isOwnerUnblockingOwnBlock) {
10297
- if (!await assertPermission(req, import_backstage_plugin_litellm_common3.litellmKeyUnblockPermission)) {
10298
- sendPermissionDenied(res, import_backstage_plugin_litellm_common3.litellmKeyUnblockPermission);
10299
- return;
10300
- }
10295
+ if (!await assertPermission(req, import_backstage_plugin_litellm_common3.litellmKeyUnblockPermission)) {
10296
+ sendPermissionDenied(res, import_backstage_plugin_litellm_common3.litellmKeyUnblockPermission);
10297
+ return;
10301
10298
  }
10302
10299
  await client.unblockKey(keyId);
10303
10300
  const updatedMetadata = {