Skip to content

Commit 22a4464

Browse files
authored
change args visibility when editing a default role (#8322)
1 parent 371ad9f commit 22a4464

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/config/section/role.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default {
5353
icon: 'edit-outlined',
5454
label: 'label.edit.role',
5555
dataView: true,
56-
args: ['name', 'description', 'type', 'ispublic'],
56+
args: (record) => record.isdefault ? ['ispublic'] : ['name', 'description', 'type', 'ispublic'],
5757
mapping: {
5858
type: {
5959
options: ['Admin', 'DomainAdmin', 'User']

0 commit comments

Comments
 (0)