Fixed an issue where deletion failed when there were no users in the resource group.

This commit is contained in:
Liujian committed 2026-01-08 11:20:51 +08:00
1 parent 6b758c3acd
commit aa2fd609c6
1 file changed
+1
@@ -87,6 +87,7 @@ class ResourceGroupService:
raise ValueError("Resource group not found")
users = self.user_repo.update_resource_group_by_group_id(gid, migrate_id or "deny-all", commit=False)
if not users:
self.db.commit()
return True
for user in users: