Update tests
This commit is contained in:
parent
496538ac01
commit
b53bc5dfaf
|
@ -835,9 +835,9 @@ describe("/rowsActions", () => {
|
||||||
|
|
||||||
// Delete explicit view permissions so they inherit table permissions
|
// Delete explicit view permissions so they inherit table permissions
|
||||||
await config.api.permission.revoke({
|
await config.api.permission.revoke({
|
||||||
|
roleId: roles.BUILTIN_ROLE_IDS.PUBLIC, // Don't think this matters since we are revoking the permission
|
||||||
level: PermissionLevel.READ,
|
level: PermissionLevel.READ,
|
||||||
resourceId: viewId,
|
resourceId: viewId,
|
||||||
roleId: "inherited",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return { permissionResource: tableId, triggerResouce: viewId }
|
return { permissionResource: tableId, triggerResouce: viewId }
|
||||||
|
|
|
@ -2248,6 +2248,11 @@ describe.each([
|
||||||
level: PermissionLevel.READ,
|
level: PermissionLevel.READ,
|
||||||
resourceId: table._id!,
|
resourceId: table._id!,
|
||||||
})
|
})
|
||||||
|
await config.api.permission.revoke({
|
||||||
|
roleId: roles.BUILTIN_ROLE_IDS.PUBLIC, // Don't think this matters since we are revoking the permission
|
||||||
|
level: PermissionLevel.READ,
|
||||||
|
resourceId: view.id,
|
||||||
|
})
|
||||||
await config.publish()
|
await config.publish()
|
||||||
|
|
||||||
const response = await config.api.viewV2.publicSearch(view.id)
|
const response = await config.api.viewV2.publicSearch(view.id)
|
||||||
|
|
Loading…
Reference in New Issue