Skip to content

Commit 4449f37

Browse files
fix: [M3-9363] - Change error message for creating an Access key Drawer (restricted user) (linode#11700)
* fix: [M3-9363] - Change error message for creating an Access key (restricted user) * Added changeset: Error message for restricted user when navigating to create Access Drawer * fix e2e test case * Update bucket-access-keys-gen2.spec.ts
1 parent 90b7318 commit 4449f37

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Fixed
3+
---
4+
5+
Error message for restricted user when navigating to create Access Drawer ([#11700](https://github.com/linode/manager/pull/11700))

packages/manager/cypress/e2e/core/objectStorageGen2/bucket-access-keys-gen2.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('Object Storage Gen2 create access key modal has disabled fields for re
126126
.should('be.visible')
127127
.within(() => {
128128
cy.findByText(
129-
/You don't have bucket_access to create an Access Key./
129+
/You don't have permissions to create an Access Key./
130130
).should('be.visible');
131131
// label
132132
cy.findByLabelText(/Label.*/)

packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ export const AccessKeyDrawer = (props: AccessKeyDrawerProps) => {
216216

217217
{isRestrictedUser && (
218218
<Notice
219-
important
220-
text="You don't have bucket_access to create an Access Key. Please contact an account administrator for details."
219+
text="You don't have permissions to create an Access Key. Please contact an account administrator for details."
221220
variant="error"
222221
/>
223222
)}

packages/manager/src/features/ObjectStorage/AccessKeyLanding/OMC_AccessKeyDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ export const OMC_AccessKeyDrawer = (props: AccessKeyDrawerProps) => {
237237

238238
{isRestrictedUser && (
239239
<Notice
240-
important
241-
text="You don't have bucket_access to create an Access Key. Please contact an account administrator for details."
240+
text="You don't have permissions to create an Access Key. Please contact an account administrator for details."
242241
variant="error"
243242
/>
244243
)}

0 commit comments

Comments
 (0)