Merge pull request #2339 from loadchange/develop_1.2.0
fix: namespace value
This commit is contained in:
commit
44cd2a8603
@ -90,7 +90,7 @@ class NewPermissions extends React.Component {
|
||||
style={{ width: '100%' }}
|
||||
>
|
||||
{namespaces.map(({ namespace, namespaceShowName }) => (
|
||||
<Option value={namespace}>
|
||||
<Option value={`${namespace}:*:*`}>
|
||||
{namespaceShowName} {namespace ? `(${namespace})` : ''}
|
||||
</Option>
|
||||
))}
|
||||
|
@ -79,7 +79,7 @@ class RolesManagement extends React.Component {
|
||||
title={locale.operation}
|
||||
dataIndex="role"
|
||||
cell={(value, index, record) => {
|
||||
if (value === 'GLOBAL_ADMIN') {
|
||||
if (value === 'ROLE_ADMIN') {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
|
@ -107,9 +107,7 @@ const getPermissions = params => dispatch =>
|
||||
* @param {*} param0
|
||||
*/
|
||||
const createPermission = ([role, resource, action]) =>
|
||||
request
|
||||
.post('v1/auth/permissions', { role, resource: `${resource}:*:*`, action })
|
||||
.then(res => successMsg(res));
|
||||
request.post('v1/auth/permissions', { role, resource, action }).then(res => successMsg(res));
|
||||
|
||||
/**
|
||||
* 删除权限
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user