Skip to content

Commit

Permalink
The error message is not user-friendly when adding duplicate permissi…
Browse files Browse the repository at this point in the history
…ons.(alibaba#12773)
  • Loading branch information
littlesparklet committed Nov 29, 2024
1 parent f95ab77 commit 568707c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console-ui/src/reducers/authority.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const getPermissions = params => dispatch =>
*/
const checkPermission = ([role, resource, action]) => {
const params = { role, resource, action };
return request.get('v1/auth/permissions', { params }).then(res => res);
return request.get('v1/auth/permissions', { params }).then(res => res.data);
};

/**
Expand Down

0 comments on commit 568707c

Please sign in to comment.