fix(iam): user group policy and delete group (fixes #2028) (#2043)

Co-authored-by: GatewayJ <8352692332qq.com>
This commit is contained in:
GatewayJ
2026-03-02 14:19:01 +08:00
committed by GitHub
parent e3815aa101
commit 2cb8db36a5
4 changed files with 151 additions and 14 deletions
+2 -2
View File
@@ -597,7 +597,7 @@ impl Store for ObjectStore {
async fn delete_group_info(&self, name: &str) -> Result<()> {
self.delete_iam_config(get_group_info_path(name)).await.map_err(|err| {
if is_err_config_not_found(&err) {
Error::NoSuchPolicy
Error::NoSuchGroup(name.to_string())
} else {
err
}
@@ -607,7 +607,7 @@ impl Store for ObjectStore {
async fn load_group(&self, name: &str, m: &mut HashMap<String, GroupInfo>) -> Result<()> {
let u: GroupInfo = self.load_iam_config(get_group_info_path(name)).await.map_err(|err| {
if is_err_config_not_found(&err) {
Error::NoSuchPolicy
Error::NoSuchGroup(name.to_string())
} else {
err
}