fix(agent): allow super admins to manage agents

This commit is contained in:
2026-09-11 11:38:15 +08:00
parent f29a94339b
commit 6eee55860f
4 changed files with 10 additions and 6 deletions
@@ -96,6 +96,8 @@ const addAgent = async () => {
if (status === 422 && !attributes.includes('base')) {
useAlert(t('AGENT_MGMT.ADD.API.EXIST_MESSAGE'));
} else if (status === 403 || data?.error?.code === 'FORBIDDEN') {
useAlert(t('AGENT_MGMT.ADD.API.PERMISSION_MESSAGE'));
} else if (status === 402 || data?.error?.code === 'PAYMENT_REQUIRED') {
useAlert(t('AGENT_MGMT.ADD.API.LIMIT_MESSAGE'));
} else {