MyFSIO v0.4.0 Release #33

Merged
kqjy merged 19 commits from next into main 2026-03-22 05:06:47 +00:00
Showing only changes of commit df4f27ca2e - Show all commits

View File

@@ -482,7 +482,7 @@ class IamService:
"expires_at": record.get("expires_at"), "expires_at": record.get("expires_at"),
"access_keys": access_keys, "access_keys": access_keys,
"policies": [ "policies": [
{"bucket": policy.bucket, "actions": sorted(policy.actions), "prefix": policy.prefix} {**{"bucket": policy.bucket, "actions": sorted(policy.actions)}, **({"prefix": policy.prefix} if policy.prefix != "*" else {})}
for policy in record["policies"] for policy in record["policies"]
], ],
} }
@@ -614,7 +614,7 @@ class IamService:
if not record: if not record:
raise IamError("User not found") raise IamError("User not found")
return [ return [
{"bucket": p.bucket, "actions": sorted(p.actions), "prefix": p.prefix} {**{"bucket": p.bucket, "actions": sorted(p.actions)}, **({"prefix": p.prefix} if p.prefix != "*" else {})}
for p in record["policies"] for p in record["policies"]
] ]