fix(export): fix the policy and service account export (#665)

* fix(export): fix the policy export mechanism

* fix: correct service account check logic in IamSys
This commit is contained in:
songhahaha66
2025-10-20 19:40:54 +08:00
committed by GitHub
parent 7f24dbda19
commit 46797dc815
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ impl<T: Store> IamSys<T> {
return Err(IamError::NoSuchServiceAccount(access_key.to_string()));
};
if u.credentials.is_service_account() {
if !u.credentials.is_service_account() {
return Err(IamError::NoSuchServiceAccount(access_key.to_string()));
}