fix(agent): allow super admins to manage agents
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user