fix: do not display field if read permission is false - admin panel ui (#3949)
This commit is contained in:
@@ -125,6 +125,14 @@ describe('access control', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('restricted fields', () => {
|
||||
test('should not show field without permission', async () => {
|
||||
await page.goto(url.account)
|
||||
await wait(500)
|
||||
await expect(page.locator('#field-roles')).toBeHidden()
|
||||
})
|
||||
})
|
||||
|
||||
describe('read-only collection', () => {
|
||||
let existingDoc: ReadOnlyCollection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user