File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
portal-ui/src/screens/Console/Account Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -247,15 +247,22 @@ const Account = () => {
247247 disabled = { userIDP }
248248 />
249249 </ SecureComponent >
250- < Button
251- id = { "create-service-account" }
252- onClick = { ( ) => {
253- navigate ( `${ IAM_PAGES . ACCOUNT_ADD } ` ) ;
254- } }
255- label = { `Create access key` }
256- icon = { < AddIcon /> }
257- variant = { "callAction" }
258- />
250+ < SecureComponent
251+ scopes = { [ IAM_SCOPES . ADMIN_CREATE_SERVICEACCOUNT ] }
252+ resource = { CONSOLE_UI_RESOURCE }
253+ matchAll
254+ errorProps = { { disabled : true } }
255+ >
256+ < Button
257+ id = { "create-service-account" }
258+ onClick = { ( ) => {
259+ navigate ( `${ IAM_PAGES . ACCOUNT_ADD } ` ) ;
260+ } }
261+ label = { `Create access key` }
262+ icon = { < AddIcon /> }
263+ variant = { "callAction" }
264+ />
265+ </ SecureComponent >
259266 </ Box >
260267 </ Grid >
261268
You can’t perform that action at this time.
0 commit comments