Update row action tests to revoke explicit view permissions when testing triggering against views
This commit is contained in:
parent
162bfdef9b
commit
51e09ddf7b
|
@ -826,11 +826,20 @@ describe("/rowsActions", () => {
|
||||||
)
|
)
|
||||||
).id
|
).id
|
||||||
|
|
||||||
|
// Allow row action on view
|
||||||
await config.api.rowAction.setViewPermission(
|
await config.api.rowAction.setViewPermission(
|
||||||
tableId,
|
tableId,
|
||||||
viewId,
|
viewId,
|
||||||
rowAction.id
|
rowAction.id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Delete explicit view permissions so they inherit table permissions
|
||||||
|
await config.api.permission.revoke({
|
||||||
|
level: PermissionLevel.READ,
|
||||||
|
resourceId: viewId,
|
||||||
|
roleId: "inherited",
|
||||||
|
})
|
||||||
|
|
||||||
return { permissionResource: tableId, triggerResouce: viewId }
|
return { permissionResource: tableId, triggerResouce: viewId }
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue