File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default {
106106 dataView : true ,
107107 show : ( record , store ) => {
108108 return [ 'Admin' , 'DomainAdmin' ] . includes ( store . userInfo . roletype ) && ! record . isdefault &&
109- ! ( record . domain === 'ROOT' && record . account === 'admin' && record . accounttype === 1 ) &&
109+ ! ( record . domain === 'ROOT' && record . account === 'admin' && record . accounttype === 1 && record . id === store . userInfo . id ) &&
110110 [ 'disabled' , 'locked' ] . includes ( record . state )
111111 }
112112 } ,
@@ -118,7 +118,7 @@ export default {
118118 dataView : true ,
119119 show : ( record , store ) => {
120120 return [ 'Admin' , 'DomainAdmin' ] . includes ( store . userInfo . roletype ) && ! record . isdefault &&
121- ! ( record . domain === 'ROOT' && record . account === 'admin' && record . accounttype === 1 ) &&
121+ ! ( record . domain === 'ROOT' && record . account === 'admin' && record . accounttype === 1 && record . id === store . userInfo . id ) &&
122122 record . state === 'enabled'
123123 }
124124 } ,
@@ -132,7 +132,7 @@ export default {
132132 popup : true ,
133133 show : ( record , store ) => {
134134 return [ 'Admin' , 'DomainAdmin' ] . includes ( store . userInfo . roletype ) && ! record . isdefault &&
135- ! ( record . domain === 'ROOT' && record . account === 'admin' && record . accounttype === 1 ) &&
135+ ! ( record . domain === 'ROOT' && record . account === 'admin' && record . accounttype === 1 && record . id === store . userInfo . id ) &&
136136 record . state === 'enabled'
137137 }
138138 } ,
You can’t perform that action at this time.
0 commit comments