Spaces:
Running
Running
Scope audit history to the whole authorized workspace
Browse files- app/api/api_keys.py +0 -1
app/api/api_keys.py
CHANGED
|
@@ -236,7 +236,6 @@ async def list_audit_logs(
|
|
| 236 |
.join(APIKeyPrincipal, APIKeyPrincipal.api_key_id == AuditLog.api_key_id)
|
| 237 |
.where(
|
| 238 |
APIKeyPrincipal.workspace_id == context.workspace_id,
|
| 239 |
-
APIKeyPrincipal.user_id == context.user_id,
|
| 240 |
APIKeyPrincipal.status == "active",
|
| 241 |
)
|
| 242 |
.order_by(AuditLog.created_at.desc())
|
|
|
|
| 236 |
.join(APIKeyPrincipal, APIKeyPrincipal.api_key_id == AuditLog.api_key_id)
|
| 237 |
.where(
|
| 238 |
APIKeyPrincipal.workspace_id == context.workspace_id,
|
|
|
|
| 239 |
APIKeyPrincipal.status == "active",
|
| 240 |
)
|
| 241 |
.order_by(AuditLog.created_at.desc())
|